From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.1.1
PHP version: 4.0.6
PHP Bug Type: HTTP related
Bug description: uploaded files corrupt
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.
--
Edit Bug report at: http://bugs.php.net/?id=11882&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]