This is weird cause an xhr call is 100% same as an http call for the server perspective.
Are you sure nothing in your code checks for file size ???
What error do you get ?
Andrea
Andrea Campolonghi
and...@getrailo.org
Nope it returns 200 and valid json response.
if(NOT isImageFile(tmpFile)) {
throw("Файл «" & tmpFileName & "» не является изображением!");
}
Check the call you make in xhr. Something wrong must be there.
From the server side a classic post call and a post via xhr are absolutely the same thing.
You say that a file is written as 0 byte. So possible that file is not passed or parsed correctly.
Are you using some html5 fileuploader?
Andrea
Andrea Campolonghi
and...@getrailo.org