php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44865 max_file_size produces no error
Submitted: 2008-04-29 23:38 UTC Modified: 2008-05-02 21:04 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: jahajee dot com at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.4.8 OS: linux
Private report: No CVE-ID: None
 [2008-04-29 23:38 UTC] jahajee dot com at gmail dot com
Description:
------------
I'm using optional file upload form with max file upload size of 200 Kb .Error check by backend script is done and error reported till the Max file size is 2 Mb (PHP max file size setting) .Since after that if the file size increases no file is actually send and hence the form is processed without any warning to the user. For example if the user uploads file of 1.6 Mb say then he gets an error that the file size is more than 200 Kb but if the uploaded file size is 2.3Mb no file is uploaded and the whole form processed without any error.
Saw the same in other discussions but of no help .Can't use the GET method as the upload file is optional in the form.
Jahajee

Expected result:
----------------
Expects to warn the user even if the file size is more than 2Mb(PHP Max file size setting)

Actual result:
--------------
No error reported and file processed without the uploaded file

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-02 21:04 UTC] fa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please see http://php.net/manual/en/features.file-upload.errors.php - this looks like what you need.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 23:01:33 2025 UTC