简体   繁体   中英

Maximum upload limit file size in the php.ini

I have a question like this: My default host memory_limit is 512M, I want to know upload_max_filesize is how much? I used to try edit upload_max_filesize = 2048M but I get error unknown when uploading files about 150MB. I changed to upload_max_filesize = 2G, I can upload files smaller than 700M. Does memory limitation affect upload_max_filesize? Please let me know. Thank you. Here is my php.ini file information:

allow_url_fopen = On
allow_url_include = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 300
max_input_time = 300
max_input_vars = 1000000
memory_limit = 512M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php56"
upload_max_filesize = 2G (Default when received: 100M, Use the character M to define the limit in Megabytes.)
post_max_size = 2G

上传期间可能会超时

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM