帮助文档 > 系统入门 > 服务器相关问题 > window

增大PHP允许上传的文件大小

增大PHP允许上传的文件大小



解决POST Content-Length exceeds the limit


在php.ini中:

upload_max_filesize = 1000M ;1GB
post_max_size = 1000M


然后重启IIS/apache




关键词

php上传文件报错

Warning: POST Content-Length of 79602522 bytes exceeds the limit of 20971520 bytes in Unknown on line 0