From:             admin at seasoft dot nl
Operating system: Freebsd 5.2.1
PHP version:      5.0.4
PHP Bug Type:     Unknown/Other Function
Bug description:  upload_max_filesize not working

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 bug report at http://bugs.php.net/?id=32816&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32816&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32816&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32816&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32816&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32816&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32816&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32816&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32816&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32816&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32816&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32816&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32816&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32816&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32816&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32816&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32816&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32816&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32816&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32816&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32816&r=mysqlcfg

Reply via email to