I'm trying to send a video file via ajax to the server but the server returns me 413 whenever the file is larger than a 20M, my apache settings are:
upload_max_filesize 5000M
memory_limit 1024M
max_input_time 6000
max_execution_time 3000
post_max_size 2000M
Has anyone ever had this problem? or would you know of a way to upload S3 without having to go through my server?
Follow the code I'm using to send
test upload
<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>