Answer the question
In order to leave comments, you need to log in
How to upload a file over 2GB using php?
Hello dear!
I installed owncloud and was very upset with the 2 GB limit. to file. In the owncloud settings, I set 10GB, in php.ini I wrote:
post_max_size = 10G
upload_max_filesize = 10G
[email protected]_odroid:/etc/php5/apache2# uname -a
Linux 7th_odroid 3.8.13.16 #1 SMP PREEMPT Tue Feb 11 09:43:03 BRST 2014 armv7l GNU/Linux
[email protected]_odroid:/etc/php5/apache2# apache2 -v
Server version: Apache/2.4.7 (Debian)
...
[email protected]_odroid:/etc/php5/apache2# php5 -v
PHP 5.5.9-1 (cli) (built: Feb 8 2014 08:11:20)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0
...
Answer the question
In order to leave comments, you need to log in
With the current version of PHP (5.5) nothing, it will be possible only in 5.6 docs.php.net/manual/en/migration56.new-features.php
About the innate limitation of php on the size of the download, they wrote above. To bypass, use, for example, nginx upload, or a similar module, for your favorite web server, and then in the script, simply process the uploaded as needed.
I support the @kotomyava option . For several years I have been using the nginx upload module in the exchanger. Glitches are 100 times less, and even buns in the form of the possibility of reloading, status in%..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question