upload multiple files in one request Dropzone sending two requests
you can use uploadMultiple property default value false change it to true
$(".dropzone").dropzone({
// autoQueue:false,
parallelUploads:10,
uploadMultiple:true,
https://www.dropzonejs.com/#config-uploadMultiple
The Issue was that I was using an input type="submit"
which would do another post by itself, changing it to type button
worked.
I was also seeing multiple POSTs with 2 files being sent at a time (so, for instance, 2 separate POSTs for 4 files total).
I found the solution here: increasing parallelUploads
. I now create the dropzone in the following way:
var myDropzone = new Dropzone('div#dz', {
url: 'http://httpbin.org/post',
uploadMultiple: true,
parallelUploads: 10
});