View Full Version : Removing uploads files
April 11th, 2008, 08:47 AM
The PhotoPost /uploads/ directory keeps filling up with temporary files. I understand that they are deleted automatically if file permissions are set correctly. Can you guide me through correcting the problem? I am responsible for 3 PhotoPost installs.
April 12th, 2008, 10:57 AM
They will stay around for users having trouble processing the files or who abort upload. You can safely ftp to your gallery directory and remove all directories under uploads to clear the uploads.
April 14th, 2008, 09:28 PM
Are you sure about that? All three PP installs seem to collect these derelict files by the hundreds. I have been manually removing them, but in some cases it has caused PHP to choke up if I let it go too long, ("too many files" errors) which generates database errors. I got the feeling it was being caused by a file ownership/permissions problem or error I made in the install somewhere.
April 15th, 2008, 06:37 AM
if permissions are not correct or ownership it could prevent a file from being deleted sure. Uploads should be 777 as well as every directory under it
April 19th, 2008, 06:19 PM
The problem is that when the uploads file directories are created, the ownership is apache/apache, while the uploads directory is not. Where is that apache/apache coming from? What is the creating file?
April 19th, 2008, 08:23 PM
That is coming from your server. As long as permissions are READ WRITE EXECUTE you should not have a problem but contact your host to be sure
April 19th, 2008, 10:10 PM
1, I am the host. 2, if the permissions are apache/apache, that may be why they are not being deleted ---
3 out of 3 PhotoPost installs, different versions, two different servers, all piling up garbage that has to be manually cleaned, constantly. It's a pain. I'm asking what file/php is supposed to be doing the garbage collecting, because it simply isn't doing it.
April 20th, 2008, 08:53 AM
The file as soon as it is processed and moved to the data folder is deleted in uploads. If your files are not being deleted check your server error logs. We do a simple unlink command to delete the file from the uploads directory.
Different servers operate different depending on how they are setup but on my linux server i have directories created by apache and it does not create any issues as permissions are 777.
I am not a server tech which is why i stated to contact your host to look into it. You can see how we delete files by looking at uploadphoto or bulkupload php files.
April 20th, 2008, 09:49 PM
I'll use this additional information (unlink, originating php file and the error log) and ask my Rackspace techs for suggestions and guidance. I'll let you know what I learn.
April 21st, 2008, 06:55 AM
Not a problem gonna be permissions i would think.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.