At 05:52 PM 4/11/02 +1000, Richard Archer wrote: >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. >
yes it is within limit > >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. how ? I put one echo statement after copy which is displaying but never uploading the file. >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. i tried with complete path starting from root (/usr/web..../html/img) and also with virtual (/img/). Is there any extra param setting ? any access rights ? > >STILL NOT GETTING LOADED. ANYTHING ELSE ? > >Please don't shout. Am I ? I do not think so. It is just an EMPHASIS. > ...R. > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php