Bug #11882 Updated: uploaded files corrupt

From: Date: Wed, 04 Jul 2001 18:28:09 +0000
Subject: Bug #11882 Updated: uploaded files corrupt
Groups: php.dev 
Request: Send a blank email to php-dev+get-58907@lists.php.net to get a copy of this message
ID: 11882 Updated by: sniper Reported By: tryk@sunbay.kiev.ua Old-Status: Open Status: Closed Bug Type: HTTP related Operating system: PHP Version: 4.0.6 Assigned To: Comments: Check this bug report for solution to your problem: http://www.php.net/bugs.php?id=11066&edit=1 --Jani Previous Comments: --------------------------------------------------------------------------- [2001-07-04 13:11:25] tryk@sunbay.kiev.ua So I have two pages: 3.phtml: ============================= cut here ================================ <form enctype="multipart/form-data" action="2.phtml" method=post> <input type=hidden name=MAX_FILE_SIZE value="65000"> <input type=file name=att> <input type=submit name=button value="Attach"> </form> ============================= cut here ================================ and 2.phtml: ============================= cut here ================================ <head> <META HTTP-EQUIV="Refresh" <? if(!move_uploaded_file($att,"/somewhere/tmp/$att_name")) exit; echo "CONTENT="2;URL=somewhere/tmp/$att_name"" ?>> </head> ============================= cut here ================================ And the file sent by 2.phtml is not the same like I upload in 3.phtml - if the file is binary. It is already not the same in /somewhere/tmp/ I use Russian Apache 1.3.14PL3. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11882&edit=2

« previous php.dev (#58907) next »