#21900 [Fbk->Bgs]: php upload malformed

From: Date: Mon, 27 Jan 2003 15:09:54 +0000
Subject: #21900 [Fbk->Bgs]: php upload malformed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31334@lists.php.net to get a copy of this message
ID: 21900 Updated by: sniper@php.net Reported By: phpbugs@serial.nl -Status: Feedback +Status: Bogus Bug Type: Apache2 related Operating System: FreeBSD 4.7-Stable PHP Version: 4.2.3 New Comment: So what differences ARE there between these two machines? Does not sound like any bug in PHP -> bogus. Previous Comments: ------------------------------------------------------------------------ [2003-01-27 09:06:40] phpbugs@serial.nl on a other machine using the same php/apache the script is working. ------------------------------------------------------------------------ [2003-01-27 08:54:38] sniper@php.net 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 ------------------------------------------------------------------------ [2003-01-27 08:32:57] phpbugs@serial.nl Hello, I have a strage problem with php 4.2.3 and apache 2.0.44, the latest available versions in port tree of freebsd. I'm using a standard php.ini. The following occurs, when i upload a file using the following script : <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> Upload een foto: <input name="userfile" type="file"> <input name="submitknop" type="submit" value="Send File"> </form> <? if (!empty($_FILES)) { move_uploaded_file ( $_FILES['userfile']['tmp_name'], './test/'.$_FILES['userfile']['name'] ); } ?> I get a malformed file ( http://e.serial.nl/fout.jpg ) Is there a solution ? thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21900&edit=1

« previous php.bugs (#31334) next »