This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Accessing the original file name with a jQuery direct upload

Comments

1 comment

  • Avatar
    Daniel Mendoza

    Hello Aleix,

    I would like to apologize for the late reply. We do have a way to retrieve the original file name at the beginning of the upload process. I have added the code snippet below. Please let me know if this works for you.

    $(".cloudinary-fileupload").cloudinary_fileupload({


         add: function(e, data){
                 console.log(data.files[0].name);

                 data.submit(); // Needed to continue executing the remainder of the code below         
         }

         start: function(e, data){
                 SOME CODE TO GET THE ORIGINAL FILE NAME...
         }


         fail: function(e, data){
                 SOME CODE TO GET THE ORIGINAL FILE NAME...
         }

    0
    Comment actions Permalink

Post is closed for comments.