Hi,
I have a made a PHP photo gallery. Photos are uploaded using:
//Check for a file
//Add the record to the database
//return the upload_id from the database
$upload_id = mysql_insert_id();
//Move the file over
move_uploaded_file($_FILES[$filename]['tmp_name'], "uploads/$upload_id")
This saves the file in the uploads folder as number without an extension. This is fine because my gallery adds the extension when the photos are retrieved.
However, I am trying to download all the photos using ftp but it fails:
Response: 550 344: Permission denied
Error: Download failed
The folder's permissions are set to 777 but the individual files are 101 and everytime I try to change them nothing happens.
I could download each individual file seperately from the site but that would take ages
Any suggestions?