Listing Frequently Updated Files w/Unique Names

Permalink
I have a client with a C5 (8.2) site who has files that are constantly being updated. Right now, I am using the free *list files from a set* addon. These files have specific file names with version info embedded, so I can't merely use a generic title like Current Version. Right now, they FTP the files to the incoming directory (they are big) and then import them into the File Manager. The client is concerned by the amount of cruft generated by having multiple large files up there that when replaced, may not be needed anymore as well as ballooning the Files directory with maybe hundreds of additional directories and subdirectories. Finally, my question. What can I tell him to assuage his fear or is there a better solution to managing and displaying these files? I guess what I would most like to see is a way to replace the current file yet retain the new file’s filename. Thanks for your help.

TeKnoZiz
 
mnakalay replied on at Permalink Reply
mnakalay
Hello,

Unfortunately, at the moment there is no solution for that.

In the file manager, if you click on a file, there is a "replace" option which, when used, will replace the file with a new one.

It is then up to you to make sure the new file has the file name you want. Everything else like attribute values, title, description... will remain the same.

But, the old file will still be on the server and even if you delete all the older versions of the file from the file manager (Properties > Versions), they are removed from the database but not from the server.
ramonleenders replied on at Permalink Reply
ramonleenders
Indeed right, if you delete a file version, these files won't be deleted from the hard disk (FTP). I am working on extending "Website Optimizer" though:

http://www.concrete5.org/marketplace/addons/website-optimizer/...

This Add-On will save you valuable MB's of data (both database and FTP). As said, I am working on extending to get this option in. Deleting files from versions that aren't available anymore. That will mean the Add-On will look through the /files directory for files (including thumbnails) that can't be found in the database. It will list them for you and after your approval, you can delete them all.

I will need a bit more time to finetune this for every concrete5 version. Let me know if you are interested to know when it's ready (I'm on Slack too).
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Very interested, please let me know. I am on Slack as well, username is TeKnoZiz.
ramonleenders replied on at Permalink Reply
ramonleenders
To those interested as well, Website Optimizer can now delete files which shouldn't be in your storage location(s). That will save you up A WHOLE LOT of MB's if you replace much files (in case of the Topic Starter for example), but also when you have removed some thumbnail types!
MrKDilkington replied on at Permalink Reply
MrKDilkington
There is a new GitHub issue that looks related to this:
"No way to delete orphaned files from the file system through CMS after using "Replace" option #6073"
https://github.com/concrete5/concrete5/issues/6073...

If this is related to your problem, I recommend leaving the issue a comment and a thumbsup.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Yes, Evan posted that for me. Added my comments. Thanks!