Image upload problem

From: Date: Wed, 02 Feb 2000 14:31:46 +0000
Subject: Image upload problem
Groups: php.version4 
Request: Send a blank email to php-version4+get-9673@lists.php.net to get a copy of this message
I am trying to upload image files to our server (PHP4b3, WinNT4.0 & IIS 4.0) using the following code: <FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD="POST"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000"> Send this file: <INPUT NAME="userfile" TYPE="file"> <INPUT TYPE="submit" VALUE="Send File"> </FORM> <? if(isset($userfile)) { copy($userfile, "C:\images\test.jpg"); } ?> The image file does upload but when I try to view it, it is just blank even though the size of the file is correct. Any help would be most appreciated. Paul

« previous php.version4 (#9673) next »