0

I have an ajax call, to upload multiple images from javascript. The code works well when I have a few images but as soon as I increase the files uploaded at the same time (ex: 530 files), the php does not receive anything. Any help to solve this issue please?

$("form").on("submit", function(e) {
e.preventDefault();
var formdata = new FormData(this);
formdata.append('regId', document.getElementById('register_id').value);


$.ajax({
    url: 'uploadImages.php',
    type: 'post',
    data: formdata,
    contentType: false,
    processData: false,
    success: function(response) {
        document.getElementById("body").innerHTML = "<p>"+response+"</p>";
    },
});

});

I tried to increase the max_upload_size and max_file_uploads from apache2 as this example:

https://connectwww.com/how-to-change-php-file-upload-size-limit-in-ubuntu/5087/

But still it does not work.

Katia
  • 81
  • 1
  • 10

0 Answers0