1. 程式人生 > >上傳文件報錯:Warning: POST Content-Length of 9443117 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

上傳文件報錯:Warning: POST Content-Length of 9443117 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

The lin clas php 但是 exce 小文件 情況 lan

只需在php.ini中設置:

upload_max_filesize = 1000M;
post_max_size = 1000M;

還有一種情況就是小文件可以上傳成功,但是大文件上傳,$_FILES 接收到是空數組,也是因為這個原因,修改上傳文件限制即可

上傳文件報錯:Warning: POST Content-Length of 9443117 bytes exceeds the limit of 8388608 bytes in Unknown on line 0