Hello Everyone,
Ok, here is the question. I have the editor set up, and i use it to update site content. The page that i create in the editor gets stored in a database for display. This works just fine and dandy.
The problem becomes when i want to change the content of a page, i can change it just fine, upload new pictures, and so forth and save it just fine. The thing i want to get working is, if I change an article and the image is no longer in use, i want it to delete the image off the server as well. If we were to implement this editor to a larger audience, editing pages weekly, that could lead to a VERY LARGE number of files and images on our server. Is there a way to do this in the editor, or will it require a seperate function outside the editor that scans all the page contents for file names, and if they aren't found, it deletes them?
Any ideas would be greatly appreciated
Tue, 01/03/2006 - 06:14
#1
RE: Removing Unused Images
There is no such feature in FCKeditor, but this might be a solution for you:
If you set up your application to have a UserFiles directory for each one of your website's pages (<cfset request.userFilesPath = "/UserFiles/#myPage#/">).
Then if when you delete the page, you can simply delete the entire folder with all userfiles for that page.
Does that seem like something that might work for you?
RE: Removing Unused Images
I seem to be completely los here.