uploading pictures
| From: | Oliver Witt | Date: | Thu, 25 Jul 2002 10:23:24 +0000 |
| Subject: | uploading pictures | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109463@lists.php.net to get a copy of this message | ||
Hi!
I got a problem with uploading pictures. Using a script following this
schema:
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
copy($HTTP_POST_FILES['userfile']['tmp_name'],
"/place/to/put/uploaded/file");
} else {
echo "Possible file upload attack. Filename: " .
$HTTP_POST_FILES['userfile']['name'];
the script always returns:
Warning: Unable to create '/*.jpg': Permission denied in fotos2.php on
line 62
I do not understand why that happens. Do I need to include a password
somewhere or somehitng like that? Thank you for your help!
Oliver