jquery.fileupload change name before upload

Asked

Viewed 328 times

1

I have a product registration system and I’m using to send the images jquery.fileupload.

It’s working perfectly, but some customers are having trouble with the duplicate name or names with space. Someone from the group can help me with this task, how can I be doing this?

I want to thank Felipe for trying to help me, I found the solution right here in the group more on the site in English, for those with the same doubt is there the solution https://stackoverflow.com/questions/26729204/jquery-blueimp-how-to-change-filename-before-upload, test and worked perfectly.

  • You are working with PHP?

  • Yes I am Elipe

  • I’ve worked with jquery.upload. Do you get the filenames without problems in PHP? We need to know if the ideal is to change the nomenclature BEFORE sending p/ PHP or later, because with PHP it is much easier.

  • look no longer know how it would be easier what happens is that after sending it records 3 different sizes of the same image a Humb, a medium and the real image I did it to be better to work on my application. I think it would be better to change the name before sending, what do you think? the php file sending I think is https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php

  • But are your clients having problems (not sending) or need the name of the files to change? This is the X of the question, because if it is a problem at the time of sending (not sending), then it must be before (for sure). I prefer to work with PHP by changing the file name and sending a callback with the new file name so that the list is updated with the new name.

  • sending is done yes no matter what the name is, the problem is to show that if it has a name equal it puts (1), (2) and then I’m having problem, the file that makes the sending is this: https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php

  • Hmm, I remember the nightmare that was hehe. I wrote my own handler at the time, in order to have less customization work. I’m going to owe you, but I can already tell you: rename in PHP (Handler them or your own Handler) and return using callback the new file name (https://github.com/blueimp/jQuery-File-Upload/wiki/Options#callback-options)

Show 2 more comments

1 answer

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.