#26882 [Opn->Fbk]: The file upload has the increased size
| From: | sniper@php.net | Date: | Mon, 12 Jan 2004 15:01:28 +0000 |
| Subject: | #26882 [Opn->Fbk]: The file upload has the increased size | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53193@lists.php.net to get a copy of this message | ||
ID: 26882
Updated by: sniper@php.net
Reported By: mascari at odarainternet dot com dot br
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Conectiva Linux 9.0
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-01-12 08:44:49] mascari at odarainternet dot com dot br
Description:
------------
I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make
upload of file not text, the size of the file are increased.
Analyzing the content of the increased file, I perceived that all the
lines blank, marked for caracter "@" had been substituted by the
posterior content the lines blank.
PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...
Reproduce code:
---------------
upload.htm:
<html><body>
<form action="upload.php" method="post"
enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="20971520">
<input name="userfile" type="file"><br>
<input type="submit" value="Send files">
</form>
</body></html>
upload.php:
<?
if(move_uploaded_file($_FILES['userfile']['tmp_name'],"/tmp/".$_FILES['userfile']['name']))
{
echo "SUCCESSFULL";
} else {
echo "ERROR<br>";
print_r($_FILES);
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26882&edit=1