php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32816 upload_max_filesize not working
Submitted: 2005-04-25 02:16 UTC Modified: 2005-04-25 09:16 UTC
From: admin at seasoft dot nl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.4 OS: Freebsd 5.2.1
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at seasoft dot nl
New email:
PHP Version: OS:

 

 [2005-04-25 02:16 UTC] 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');
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-25 09:12 UTC] tony2001@php.net
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.


 [2005-04-25 09:16 UTC] tony2001@php.net
See #32553.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC