Reputation: 21068
hi i got list of warning regarding file size when i try to upload an image using file upload.
"POST Content-Length of 12223490 bytes exceeds the limit of 8388608 bytes in Unknown on line 0"
My question is how to avoid displaying warning messages (i got 5 warnings). I dont want to increase the file size limit just handle it with showing single warning msg to user rather than a list
Upvotes: 1
Views: 1470
Reputation: 91942
You can avoid displaying the warnings by settings the display_errors
setting to false. Just make sure you log the errors so you can troubleshoot problems later.
Upvotes: 1