Had a form working fine (and still is) but files over a certain size just fail on an empty $_FILES.
I can upload 10Mb files, 60Mb and even 101MB but the file I really want to upload is 120MB and the upload just fails with an empty $_FILES.
The php.ini are set:
file_uploads = On
post_max_size = 750M
upload_max_filesize = 500M
max_execution_time = 500
include_path = .:/usr/local/lib/php
auto_prepend_file = config.php
But the largest file just fails. I have read that my /tmp directory might be full but the only /tmp dir is in the same directory as public_html and this dir has not very much in it apart from awstats and webalizer.
Any help?
check this setting max_input_time
. it limits the time a script can parse data.
Somebody says that your memory_limit
needs to be raised either.
It should be higher than upload_max_filesize
.
If your are running suhosin there are also some options: suhosin.memory_limit
, suhosin.post.max_value_length
Additionally there is the max_input_time
option.
There could also be some proxies like nginx or varnish which prevents uploading such big files.
Finally there is one directive in Apache: LimitRequestBody
And for mod_fastcgi: FcgidMaxRequestLen
, FcgidConnectTimeout
You can also try monitoring your upload with APC and some AJAX driven progress bar: http://www.phpriot.com/articles/php-ajax-file-uploads/3
Are u using "MAX_FILE_SIZE" hidden field in the input file upload html form?
If used please check this issue.
Set these in your php.ini:
upload_max_filesize = 10M
post_max_size = 10M
and check
memory_limit
to be higher than post_max_size
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.