We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c536f commit c545ea5Copy full SHA for c545ea5
js/jquery.fileupload.js
@@ -453,7 +453,7 @@
453
}
454
if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
455
options.headers['Content-Disposition'] = 'attachment; filename="' +
456
- encodeURI(file.name) + '"';
+ encodeURI(file.uploadName || file.name) + '"';
457
458
if (!multipart) {
459
options.contentType = file.type || 'application/octet-stream';
@@ -489,7 +489,11 @@
489
});
490
491
if (options.blob) {
492
- formData.append(paramName, options.blob, file.name);
+ formData.append(
493
+ paramName,
494
+ options.blob,
495
+ file.uploadName || file.name
496
+ );
497
} else {
498
$.each(options.files, function (index, file) {
499
// This check allows the tests to run with
0 commit comments