File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery File Upload Plugin 5.31.2
2
+ * jQuery File Upload Plugin 5.31.3
3
3
* https://github.com/blueimp/jQuery-File-Upload
4
4
*
5
5
* Copyright 2010, Sebastian Tschan
379
379
if ( options . contentRange ) {
380
380
options . headers [ 'Content-Range' ] = options . contentRange ;
381
381
}
382
- if ( ! multipart ) {
382
+ if ( ! multipart || options . blob || ! this . _isInstanceOf ( 'File' , file ) ) {
383
383
options . headers [ 'Content-Disposition' ] = 'attachment; filename="' +
384
384
encodeURI ( file . name ) + '"' ;
385
+ }
386
+ if ( ! multipart ) {
385
387
options . contentType = file . type ;
386
388
options . data = options . blob || file ;
387
389
} else if ( $ . support . xhrFormDataFileUpload ) {
414
416
} ) ;
415
417
}
416
418
if ( options . blob ) {
417
- options . headers [ 'Content-Disposition' ] = 'attachment; filename="' +
418
- encodeURI ( file . name ) + '"' ;
419
419
formData . append ( paramName , options . blob , file . name ) ;
420
420
} else {
421
421
$ . each ( options . files , function ( index , file ) {
You can’t perform that action at this time.
0 commit comments