简体   繁体   English

php.ini中的最大上传限制文件大小

[英]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? 我有这样一个问题:我的默认主机memory_limit是512M,我想知道upload_max_filesize是多少? I used to try edit upload_max_filesize = 2048M but I get error unknown when uploading files about 150MB. 我曾经尝试编辑upload_max_filesize = 2048M,但是上传约150MB的文件时出现未知错误。 I changed to upload_max_filesize = 2G, I can upload files smaller than 700M. 我更改为upload_max_filesize = 2G,我可以上传小于700M的文件。 Does memory limitation affect upload_max_filesize? 内存限制是否会影响upload_max_filesize? Please let me know. 请告诉我。 Thank you. 谢谢。 Here is my php.ini file information: 这是我的php.ini文件信息:

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

上传期间可能会超时

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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