Hi,
I seem to have a weird problem uploading files to my linux server. I have two files:
first file (testupload.php):
<FORM ENCTYPE="multipart/form-data" ACTION="test.php" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="2000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
second file (test.php):
move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], "/var/www/img/test.gif");
Well, the problem is that the GIF file is created on the server, in the right folder and it has the right size & name - BUT I am unable to open the or copy the file - but I can delete the file...
Any suggestions?