Discover · filestack.com

Fix ‘The Uploaded File Exceeds the upload_max_filesize Directive in php.ini’

Filestack filestack.com

“The uploaded file exceeds the upload_max_filesize directive in php.ini” is the message for PHP upload error code 1. One file in the request was larger than upload_max_filesize, which is 2M (2 megabytes) by default, so PHP dropped that file before your script started. To fix it, raise upload_max_filesize and post_max_size in the php.ini file that your web server loads, then restart PHP.

Filestack, our file upload API, takes the file out of that path. The File Picker sends the file from the browser straight to Filestack storage, and your PHP script receives a handle, a 20-character ID for the stored file. We built a two-file PHP sample that uploads a 12 MB file past the default 2M limit, and it needs an API key, an app secret and one script tag.

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

In the piece

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from Filestack

  1. Validate File Upload in JavaScript and Reject Photos That Are Not Documentscarlc filestack.com
  2. Angular Material File Upload With Scan and Read StatesJoshua filestack.com
  3. Best Image Format for Web Pages in 2026Joshua filestack.com
  4. How to Set Up Virus Detection on the New Filestack PortalFavour Onuoha filestack.com
  5. How to Secure File Uploads With Signed Policiescarlc filestack.com
  6. An SFTP Alternative for Partner Uploads With a Signed Link That Scans for Virusescarlc filestack.com