#32816 [Opn->Csd]: upload_max_filesize not working
| From: | tony2001@php.net | Date: | Mon, 25 Apr 2005 07:12:35 +0000 |
| Subject: | #32816 [Opn->Csd]: upload_max_filesize not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78144@lists.php.net to get a copy of this message | ||
ID: 32816
Updated by: tony2001@php.net
Reported By: admin at seasoft dot nl
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Freebsd 5.2.1
PHP Version: 5.0.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-04-25 02:16:35] admin at seasoft dot nl
Description:
------------
Hi, i've upgraded to php 5.0.4 from 4.3.4 and while file downloads did
work on the old version, i'am having difficulties with the last version
when files are over 2MB in size. Files that are bigger are just cut
short.
Adjusting upload_max_filesize and post_max_size doesn't help although
the changes are visible when viewing phpinfo.
phpinfo can be found here:
http://seasoft.nl/info.php
The error logs remain silent.
Thanks,
Tjeerd
Reproduce code:
---------------
<?
$mime_type = (PMA_USR_BROWSER_AGENT == 'IE' || PMA_USR_BROWSER_AGENT ==
'OPERA') ? 'application/octetstream' : 'application/octet-stream';
header('Content-Type: ' . $mime_type);
if (PMA_USR_BROWSER_AGENT == 'IE') {
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Disposition: inline; filename="rel109.img"');
header("Content-Transfer-Encoding: binary");
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Disposition: attachment; filename="rel109.img"');
header("Content-Transfer-Encoding: binary");
header('Expires: 0');
header('Pragma: no-cache');
}
readfile('rel109.img');
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32816&edit=1