note 15927 added to features.file-upload

From: Date: Tue, 09 Oct 2001 08:18:01 +0000
Subject: note 15927 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-18712@lists.php.net to get a copy of this message
Here is a small code I am using to upload snall image file or any other small files to the web server using PhP 4. The Form : <html> <head><title>Test Upload Form</title></head> <body> <form enctype="multipart/form-data" action="testphpupload.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> </body> </html> --------- testphpupload.php <?php move_uploaded_file($userfile, "/neon/home/g/greaterdenver/www/photos"); ?> On running this I am getting an Error Message from the browser as : Warning: Unable to create '/neon/home/g/greaterdenver/www/photos': Is a directory in /neon/home/g/greaterdenver/www/testphpupload.php on line 9 Warning: Unable to move '/tmp/phppAdenp' to '/neon/home/g/greaterdenver/www/photos' in /neon/home/g/greaterdenver/www/testphpupload.php on line 9 Please, help -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+15927 http://master.php.net/manage/user-notes.php?action=delete+15927 http://master.php.net/manage/user-notes.php?action=reject+15927

« previous php.notes (#18712) next »