|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14316 Incorrect upload_max_filesize causes problems
Submitted: 2001-12-02 19:04 UTC Modified: 2011-01-01 00:18 UTC
From: graeme at i7 dot com dot au Assigned:
Status: Wont fix Package: PHP options/info functions
PHP Version: 4.0.6 OS: Solaris 2.6
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:
48 - 32 = ?
Subscribe to this entry?

 [2001-12-02 19:04 UTC] graeme at i7 dot com dot au
This is more of a user-error problem but it would be nice to maybe do something about.
Setting a upload_max_filesize value to 10MB rather then 10M causes PHP to ignore the MB portion and only allow uploads of 10 bytes instead.

Is it possible for PHP to instead inspect the first character after the number of use that so 10MB will get seen as 10M?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 04:12 UTC]
This is different problem and has nothing to do with the http upload code.
The php ini parser should allow MB (instead of only allowing M)


 [2011-01-01 00:18 UTC]
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: PHP options/info functions
 [2011-01-01 00:18 UTC]
M is more correct than MB and has worked for over 10 years. No need to change anything.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 15 13:01:23 2021 UTC