Re: uploading pictures

From: Date: Thu, 25 Jul 2002 10:33:07 +0000
Subject: Re: uploading pictures
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109464@lists.php.net to get a copy of this message
Hello Oliver, Thursday, July 25, 2002, 1:23:24 PM, you wrote: OW> Hi! OW> I got a problem with uploading pictures. Using a script following this OW> schema: OW> if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) { OW> copy($HTTP_POST_FILES['userfile']['tmp_name'], OW> "/place/to/put/uploaded/file"); OW> } else { OW> echo "Possible file upload attack. Filename: " . OW> $HTTP_POST_FILES['userfile']['name']; OW> the script always returns: OW> Warning: Unable to create '/*.jpg': Permission denied in fotos2.php on OW> line 62 OW> I do not understand why that happens. Do I need to include a password OW> somewhere or somehitng like that? Thank you for your help! OW> Oliver i think u should set write permissions to directory where u r trying to copy file -- Best regards, Alexander Kuznetsov Leading Web-programmer sanych@cstrade.koenig.ru Centre of engineering technologies CS Trade http://www.cstrade.ru

« previous php.general (#109464) next »