|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40605 Unable to gracefully handle when max_post_size exceeded with file uploads
Submitted: 2007-02-23 14:02 UTC Modified: 2016-12-30 23:59 UTC
Avg. Score:4.6 ± 0.6
Reproduced:11 of 11 (100.0%)
Same Version:5 (45.5%)
Same OS:7 (63.6%)
From: sam dot bryan at montal dot com Assigned:
Status: Open Package: *Web Server problem
PHP Version: 5.2.1 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 - 12 = ?
Subscribe to this entry?

 [2007-02-23 14:02 UTC] sam dot bryan at montal dot com
There is, as far as I can discern, no mechanism for detecting exceeded max_post_size when dealing with file uploads.

Setting max_post_size >= upload_max_filesize is a good safety for single files, but when uploading multiple files is of no use, as individual files can be within upload_max_filesize but can cumulatively exceed max_post_size.

The php://input wrapper and $HTTP_RAW_POST_DATA aren't populated when data is posted with enctype multipart/form-data, otherwise that'd be a simple way of checking the POST data size.

My request is for a method of detecting when max_post_size is exceeded, so it can be handled gracefully within a script.  Having php://input filled when data is of multipart/form-data would do nicely.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:59 UTC]
-Package: Feature/Change Request +Package: *Web Server problem
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 22:01:28 2024 UTC