php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: graeme at i7 dot com dot au
New email:
PHP Version: OS:

 

 [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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 04:12 UTC] sniper@php.net
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)

--Jani

 [2011-01-01 00:18 UTC] jani@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: PHP options/info functions
 [2011-01-01 00:18 UTC] jani@php.net
M is more correct than MB and has worked for over 10 years. No need to change anything.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC