Posts

Showing posts with the label jqxhr

FormData file, ajax doesn't post $_FILES in IE 11

FormData file, ajax doesn't post $_FILES in IE 11 I have the following code (formdata) in JavaScript and it's working properly in Mozilla and Chrome . When I tried it in IE 11 , it doesn't POST well using ajax. The success function is called, but $_FILES is empty on the server side. $_FILES file = _files[i][j]; if(j<_files[i].length){ if(file){ var data = new FormData(); data.append("uploadedimages", file); console.log("formdata:"+data); progressElement = $('#divimg_'+i+'_'+j); progressElement.css('visibility','visible').hide().fadeIn('500'); $.ajax({ url: "<?php echo base_url();?>"+"upload/do_upload", data: data, cache: false, contentType: false, processData: false, type: 'POST', success: function(data){ console.log(data); j++; if(j<_files[i].length){ ...