2

Hi I have a PHP image uploader on my page. all the common image formats are allowed to insert in to the database. However when I try to insert another 'non allowed' format (I tried a video) via the upload, I get an error message as below.

Warning: POST Content-Length of 17917021 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

can some one pls tell me what causing this error and possibly how do I correct this?

If my code is required pls do highlight.

Thank you.

  • possible duplicate of [PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0](http://stackoverflow.com/questions/11719495/php-warning-post-content-length-of-8978294-bytes-exceeds-the-limit-of-8388608-b) – Tomas Creemers Aug 18 '13 at 11:33

3 Answers3

0

It seems the error has nothing to do with the image format you are trying to upload, it has to do with the max file size your server allows you to upload.

You will find an anwer at PHP change the maximum upload file size

Community
  • 1
  • 1
muimota
  • 524
  • 5
  • 9
0

you need to adjust your php.ini settings there are two settings.

upload_max_filesize
max_post_size 
DevZer0
  • 13,433
  • 7
  • 27
  • 51
0

look into php.ini, this may interest you

upload_max_filesize
post_max_size
max_input_time
Wiggler Jtag
  • 669
  • 8
  • 23