PHP upload file when the file is too large $_FILES empty solution
- 2020-11-25 07:10:33
- OfStack
When I was uploading the image, I suddenly found that one gif image failed to be uploaded. size was 0, and the actual size was 4.66M. You can upload small files, but not large files, look at PHP.INI upload_max_filesize = 2M, the problem is here, modify its value
Restart under nginx problem resolved.
; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
Restart under nginx problem resolved.