From: [EMAIL PROTECTED] Operating system: FreeBSD 4.7-Stable PHP version: 4.2.3 PHP Bug Type: Apache2 related Bug description: php upload malformed
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 bug report at http://bugs.php.net/?id=21900&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21900&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21900&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21900&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21900&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21900&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21900&r=support Expected behavior: http://bugs.php.net/fix.php?id=21900&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21900&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21900&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21900&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21900&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21900&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21900&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21900&r=gnused