jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

add opportunity to change names of loaded files

Open mindochin opened this issue 13 years ago • 1 comments

request: add opportunity to change names of files before loading (inline edit, etc)

mindochin avatar Oct 23 '13 04:10 mindochin

It's now possible to set an alternative name used for each file to be uploaded:

$('"#fileupload').on('fileuploadsubmit', function (e, data) {
    data.files[0].uploadName = 'Alternative-Name.jpg";
});

However, since this requires support for the third FormData.append() parameter and is not supported cross-browser I won't implement the UI for it. For cross-browser support you could send along standard form data and adjust the name on server-side.

blueimp avatar Oct 24 '13 04:10 blueimp