PHP增加上传文件大小

时间:2016-03-22 08:53:06

标签: php file-upload max

php.ini中的最大上传大小是否有限制?

我想改变它如下:

upload_max_filesize = 4096 M4 G

post_max_size = 4 G

2 个答案:

答案 0 :(得分:0)

试试这个

Maximum allowed size for uploaded files.
upload_max_filesize = 4000M

 Must be greater than or equal to upload_max_filesize
post_max_size = 4000M

答案 1 :(得分:0)

您需要在php.ini中设置 upload_max_filesize post_max_size变量的值:

upload_max_filesize = 5000M
post_max_size = 5000M