Home » HTTP » HTTP_Upload » Bug #836
does not handle upload_max_filesize like 2M style
Details
| Submitted | 2004-02-23 01:54 UTC |
|---|---|
| From | maka3d at yahoo dot com dot br |
| Assigned | antonio |
| Status | Closed |
| Package | HTTP_Upload |
| PHP Version | 4.3.4 |
| OS | irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-02-23 01:54 UTC] maka3d at yahoo dot com dot br
Description:
------------
at line 80 is very common upload_max_filesize be set to a non integer like 2M!
change the line:
$ini_size = ini_get('upload_max_filesize');
to:
$ini_size = str_replace('m','000000', strtolower( ini_get('upload_max_filesize') ) );