0

I want to upload file from form and file size must be less then 1 GB. But there is an error like

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

What am I missing here?

Here is my code:

  1. config: Config
  2. input file: input file
Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91
Nana
  • 53
  • 3
  • Don't use screenshots to show us the code but add the code in the question – Ende May 28 '18 at 07:06
  • 3
    Possible duplicate of [Change the maximum upload file size](https://stackoverflow.com/questions/2184513/change-the-maximum-upload-file-size) – tttapa May 28 '18 at 07:07
  • instead of putting screenshots of your code in the question, you should put your code itself, so it's easier for helpers here. – Tolga Evcimen May 28 '18 at 07:09
  • Possible duplicate of [PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0](https://stackoverflow.com/questions/11719495/php-warning-post-content-length-of-8978294-bytes-exceeds-the-limit-of-8388608-b) – pspatel May 28 '18 at 07:21

1 Answers1

0

The default maximum post data size in PHP is 8MiB, i.e. 8×1024² B = 8,388,608 B. That's the number you're seeing.

If you want to be able to upload files up to 1 GiB, you have to edit your php.ini file, and set post_max_size and upload_max_filesize to "1G".

tttapa
  • 1,397
  • 12
  • 26