I wrote a fileupload handler in JavaScript to send multiple files using formdata to django. The script works as expected if the user sends multiple files to the server using