php.net |  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
Votes:11
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sam dot bryan at montal dot com
New email:
PHP Version: OS:

 

 [2007-02-23 14:02 UTC] sam dot bryan at montal dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:59 UTC] cmb@php.net
-Package: Feature/Change Request +Package: *Web Server problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC