#21819 [Fbk->Bgs]: Corrupted uploaded binary files

From: Date: Fri, 14 Feb 2003 01:58:25 +0000
Subject: #21819 [Fbk->Bgs]: Corrupted uploaded binary files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33142@lists.php.net to get a copy of this message
ID: 21819 Updated by: sniper@php.net Reported By: ele@roundex.com -Status: Feedback +Status: Bogus Bug Type: Apache2 related Operating System: Linux RedHar 8.0 PHP Version: 4.3.1 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. assuming the solution from the above mentioned bug report solved this.. Previous Comments: ------------------------------------------------------------------------ [2003-02-03 03:21:38] sniper@php.net Please check the solution from bug #19263 and confirm if it solves this. If so, feel free to set this to 'Bogus' too.. ------------------------------------------------------------------------ [2003-02-03 02:48:50] jan.safranek@siemens.com This seems as duplicate of bug 19263 - workaround mentioned there worked for me. Just comment out whole <Files> section in php.conf ------------------------------------------------------------------------ [2003-01-22 20:03:43] sniper@php.net I guess the problem (again) is apache2. It's really not ready for production yet, so you should consider using Apache 1.3.27 which really works.. Reclassified. ------------------------------------------------------------------------ [2003-01-22 16:07:04] ele@roundex.com The script goes like this: <html> <body> <? echo $_FILES['userfile']['name']." "; echo $_FILES['userfile']['type']." "; echo $_FILES['userfile']['size']." "; echo $_FILES['userfile']['tmp_name']." "; echo $_FILES['userfile']['error']." "; if (move_uploaded_file($_FILES['userfile']['tmp_name'], "/var/www/hosts/se8.org/htdocs/temp/image.jpg")) { echo "moved"; } else { echo "not_moved"; } ?> <p> <form action="test.php" method="post" enctype="multipart/form-data"> <input type="file" name="userfile"> <input type="submit"> </form> </body> </html> When I upload a 11463 byte image, it grows to 22575 bytes and corrutps. ------------------------------------------------------------------------ [2003-01-22 15:44:58] iliaa@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Please provide the script you are using to upload the files and the script used to handle the actual files uploads. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21819 -- Edit this bug report at http://bugs.php.net/?id=21819&edit=1

« previous php.bugs (#33142) next »