When I was uploading pictures, I suddenly found that a gif picture failed to upload. The size was 0, and the actual size was 4.66M. It works when uploading small files, but not when uploading large files. I looked at upload_max_filesize = 2M in PHP.INI. This is where the problem lies. Modify its value
Copy code The code is as follows:
; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
Restarting nginx solved the problem.
http://www.bkjia.com/PHPjc/621722.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621722.htmlTechArticleWhile uploading images, I suddenly found that a gif image failed to upload with size 0 and the actual size was 4.66M. It works when uploading small files, but not when uploading large files. Check the upload_...
in PHP.INI