filearchive folder & ftp takeover

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Evoplure
Posts: 43
Joined: Fri 8. Jul 2005, 02:59

filearchive folder & ftp takeover

Post by Evoplure »

I am using 1.3.3 and the facts are as follows:

- I was creating a picture gallery and uploaded around 50 pictures using fto takeover
- the pictures were too big, so decided to upload a smaller versions of them using ftp takeover again to the same file directory. All of them had the same name and "replace eponymous files" option was selected. I repeated this process two times, because I wanted to correct quality of some of them, etc.
- Things were apparently ok, and the new files are shown now with the correct size and quality in the frontend.

the problems

- Old files are still in filearchive folder. by mistake I uploaded files with more than 1MB, that means that there is filearchive more than 50-70Mb that are not necessary of being preserved (that is a big % of the complete size of my website in Mb!!).
- When checking the file properties through the file area in the backend it is shown the initial size of the file, and when selecting download the one that is downloaded is the small and correct one.

question
- what is the safest way for deleting the pictures that are not in use from filearchive directory?

thanks a million in advance for your answer
* Maybe I'm wrong * Maybe not *
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: filearchive folder & ftp takeover

Post by Heiko H. »

Hi Evoplure,

first make sure that "filearchive/can_be_deleted/" is writable.
Go to backend -> file -> empty trash can, than go to to backend -> admin -> remove delete files.
Now all unneeded files are in "filearchive/can_be_deleted/". Delete them if you want.

Heiko...
Not longer here - sorry...

Haubner-IT GbR Dresden
Evoplure
Posts: 43
Joined: Fri 8. Jul 2005, 02:59

Re: filearchive folder & ftp takeover

Post by Evoplure »

thanks a million for your answer

"filearchive/can_be_deleted/" is writable (777) and that works perfectly when I delete a file using the delete option in the backend.

but my problem is specifically when I upload files with the ftp takeover feature, the old ones should be automatically deleted or replaced in "filearchive/", which is not the case: I select "replace eponymous files", but the old ones are kept in "filearchive/" with the new ones (that were assigned different names).

browsing in the file area of the backend shows only the last ones: apparently the old one were deleted/replaced, but they are still in "filearchive" folder and, therefore, it is not possible delete them manually from the backend!: I have just tried to delete one of these files, and only the new one appear in "filearchive/can_be_deleted/", so I suppose the old one are still in "filearchive"....]
* Maybe I'm wrong * Maybe not *
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: filearchive folder & ftp takeover

Post by Oliver Georgi »

hm, yes right - seems is missing. I think I should mark the replaced as trashed.

But I must proof...

Maybe someone can try it too.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: filearchive folder & ftp takeover

Post by Jensensen »

[x]
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply