Skip to content

Commit 0decc74

Browse files
committed
Allow to provide an alternate Name for the file upload. Closes blueimp#2677
If the given File or Blob object has an uploadName property, it will be used as third parameter for FormData.append(). Please note that not all browsers support this third parameter. Unfortunately, the name property of File objects is read only.
1 parent cc70588 commit 0decc74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.fileupload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.36.0
2+
* jQuery File Upload Plugin 5.37.0
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -463,7 +463,7 @@
463463
formData.append(
464464
options.paramName[index] || paramName,
465465
file,
466-
file.name
466+
file.uploadName || file.name
467467
);
468468
}
469469
});

0 commit comments

Comments
 (0)