I am using a jQuery script to upload files to a new page. It somehow works too, but the issue is that it sends the form data as object FormData.
object FormData
Here i
Files cannot be uploaded with the GET method. You need to use POST.
$.ajax({ method: 'POST', url: '/test/file_capture', // ...
Also, you need HTML 5 to be able to upload files (though Firefox might allow it with earlier XHTML).