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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php