413 (Request Entity Too Large) in php server

Asked

Viewed 473 times

1

I am trying to send a video file via ajax to the server but the server returns me 413 whenever the file is bigger than 20 M, my apache settings are:

upload_max_filesize 5000M
memory_limit 1024M
max_input_time 6000
max_execution_time 3000
post_max_size 2000M

anyone ever had this problem? or would know a way to upload S3 without having to go through my server?

follows the code I’m using to send

upload test

<input id="fileupload" type="file" name="files[]" data-url="<?=base_url('/interation/testeRecebe')?>" multiple enctype="multipart/form-data"></input>
<button type="button" value="Upload">Upload</button>
<script>
$(function () {
    $('#fileupload').fileupload({
        dataType: 'json',
        add: function (e, data) {
            data.context = $('<button/>').text('Upload')
                .appendTo(document.body)
                .click(function () {
                    data.context = $('<p/>').text('Uploading...').replaceAll($(this));
                    data.submit();
                });
        },
        done: function (e, data) {
            data.context.text('Upload finished.');
        }
    });
});
</script>
  • Check this link, I believe it can help you: http://stackoverflow.com/a/3562618/2238515

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.