Php upload large files

I am stuck here with a file upload problem. I searched for the answers, but found only "an increase in post_max_size and upload_max_filesize", and this does not work for me. I can’t upload large files (approximately about 150 MB +), the following parameters of my php.ini and my environment

php.ini

- max_input_time 300 - max_execution_time 600 - memory_limit 1024M - upload_max_filesize 1512M - post_max_size 2048M 

<strong> environments

  - Webserver: XAMPP - PHPFramwork: CodeIgniter 

Ive also tried many other php.ini configurations. The file upload class that Ive built got the published file data from the XmlHttpResponse request using xhr.send (file). Ive debugging information with the firebug header OK, the post is completely empty (usually it should be file data, text that can be read), cookies are ci_session cookies, and there is no xhr response text at all. Ive written a script that will return some answer no matter what.

There are no experts in this, not a beginner. This is all the information I can give you guys. So, any ideas on what is going on in this? Im really stuck here cannot solve this problem.

If there is any information that I can find and give it to you to solve this problem, tell me about it.

thanks in advance.

+2
source share
2 answers

instead of loading the standard form, try loading the xhr object (as you said), but using the chunk file method to send the file to the server, so theoretically you should not upload limits. Try downloading the jquery plugin, which also provides php scripts:

http://code.google.com/p/ax-jquery-multiuploader/ MAKE SURE YOU CANNOT APPEAL

New link (free): http://www.albanx.com/download.php?item_id=4

Documentation: http://www.albanx.com/ajaxuploader/doc.php

+6
source

If you download very large files, for example, a few GB, then in fact there are restrictions on the browser side. Most modern 2GB browsers seem to be 4GB . You should probably look at chunking (uploading parts of a file, like a few MB at a time), uploading files.

+5
source

Source: https://habr.com/ru/post/1442746/


All Articles