javascript - Heavy Images Not Uploading Ajax/Jquery, FormData is empty -


i running code working fine small size of images upto 2.5mb each image , form have take maximum of 8 imgaes when used images more 4mb more 1 in form sends blank

$_post

and

$_files

while if select 1 file of 6mb uploading fine, when upload multiple files sends me blank data @ server side.

the form contains 8 input fields of file type [not multiple ones]

$('#'+id+'_form').submit(function(e){         var formobj = $(this);         var formurl = formobj.attr("action");         var formdata = new formdata(this);         $.ajax({             url: formurl,             type: 'post',             data:  formdata,             mimetype:"multipart/form-data",             contenttype: false,             cache: false,             processdata:false,             success: function(data, textstatus, jqxhr)             {                 if(data){                     data = jquery.parsejson( data );                     (var key in data) {                         if (data.hasownproperty(key)) {                             var html = '<span>uploaded</span>';                            // $('#'+data[key].upload+'_id').hide();                             $('#'+data[key].upload+'_id').after(html);                         }                      }                     $('#'+id+'_uploadbutton').val('uploaded successfully');                 }else{                     $('#'+id+'_uploadbutton').val('error occurred !!!');                 }             },             error: function(jqxhr, textstatus, errorthrown)              {             }                   });         e.preventdefault(); //prevent default action.          /*e.unbind();*/     });      $('#'+id+'_form').submit(); 

try in php.ini

  • post_max_size=30m
  • upload_max_filesize=30m

or try in htaccess:

  • php_value post_max_size 30m
  • php_value upload_max_filesize 30m

Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -