ArK
ArK

Reputation: 21068

drupal POST Content-Length exceeds the limit

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

Answers (2)

Emil Vikström
Emil Vikström

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

theist
theist

Reputation: 3488

Check at php.ini:

post_max_size and upload_max_filesize

Upvotes: 2

Related Questions