From 6513bbaf01f3badd0333d76889f262dd8ab8676e Mon Sep 17 00:00:00 2001 From: Giovanni Manuel Toppi Date: Fri, 20 Feb 2015 12:06:38 +0100 Subject: [PATCH] change for multiple file handling if (tests.formdata) formData.append('file', files[i]); to if (tests.formdata) formData.append('file' + i, files[i]); before the file to be uploaded was only one --- demos/dnd-upload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/dnd-upload.html b/demos/dnd-upload.html index 7b1ceb9..9adf40e 100644 --- a/demos/dnd-upload.html +++ b/demos/dnd-upload.html @@ -73,7 +73,7 @@ debugger; var formData = tests.formdata ? new FormData() : null; for (var i = 0; i < files.length; i++) { - if (tests.formdata) formData.append('file', files[i]); + if (tests.formdata) formData.append('file' + i, files[i]); previewfile(files[i]); }