I want to receive the files in a formData and send in an ajax request and I want the server to receive it as if it were an input file field.
I tried this: Add files from Dropzone to form
but when I make the request, my server doesn't recognize it as an input file field
$.ajax({
url: args.url,
data: formData, /*I want the file inside this formData */
success: function(data){
}, error: function() {
}
});