File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -547,10 +547,10 @@ export default {
547
547
548
548
_fileUploadHtml5 (file ) {
549
549
var form = new window.FormData ();
550
- form .append (this .name , file .file );
551
550
for (var key in file .data ) {
552
551
form .append (key, file .data [key]);
553
552
}
553
+ form .append (this .name , file .file );
554
554
var xhr = new XMLHttpRequest ();
555
555
xhr .open (' POST' , file .postAction );
556
556
this ._fileUploadXhr (xhr, file, form);
@@ -588,7 +588,6 @@ export default {
588
588
form .setAttribute (' method' , ' POST' );
589
589
form .setAttribute (' target' , ' upload-iframe-' + file .id );
590
590
form .setAttribute (' enctype' , ' multipart/form-data' );
591
- form .appendChild (file .el );
592
591
593
592
for (let key in file .data ) {
594
593
let input = document .createElement (' input' );
@@ -598,6 +597,7 @@ export default {
598
597
form .appendChild (input);
599
598
}
600
599
600
+ form .appendChild (file .el );
601
601
602
602
603
603
var getDocumentData = function () {
You can’t perform that action at this time.
0 commit comments