I upload a file using XMLHttpRequest, for the first file I uploaded was not a problem but for the second file that I uploaded, I face a problem. url just spinning without reaction, with an empty file POST and not entered into the server side. and this happen when I upload files above 100MB. for info I use tools:EXTJS,jQuery.
this is my code :
var formData = new FormData();
// Append each file to the FormData() object
formData.append('FdId',folder_id);
formData.append('file', files[0]);
$.ajax({
url: '/douploadfile', //server script to process data
type: 'POST',
data: formData,
//Options to tell JQuery not to process data or worry about content-type
cache: false,
contentType: false,
processData: false,
success:{},
failure:{}
}
});
So is there something wrong with my code? I hope someone can help me to solve my problem, thank you.