Re: Image Uploading not taking place

From: Date: Thu, 11 Apr 2002 07:52:00 +0000
Subject: Re: Image Uploading not taking place
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-92519@lists.php.net to get a copy of this message
At 2:28 PM +0800 11/4/02, Manisha wrote: ><input type="hidden" name="MAX_FILE_SIZE" value="1000"> That's a mighty small limit on file size. Especially if it's an image being uploaded. Are you sure the file you're testing with is smaller than 1000 bytes? Also, be aware that this field is advisory only. Many browsers ignore it. >if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) { > copy($HTTP_POST_FILES['userfile']['tmp_name'], "/img"); Check to see whether that "copy" function completed successfully. I'd be surprised if you really want to move the file to /img. And if you're on a Unix system the web server certainly won't have write access to the / directory. >STILL NOT GETTING LOADED. ANYTHING ELSE ? Please don't shout. ...R.

« previous php.general (#92519) next »