Avatar

Deleting files from documents directory (Technics)

by Auge ⌂, Sunday, July 01, 2012, 15:14 (4310 days ago) @ mkjjj

Hello

I've just stumbled upon a little problem with attached files. After editing a thread and deleting the attached file the file is physically still in the documents directory.

I hope, I understood the problem. You want to delete a posting, but the attached images/uploads will not deleted from the file system.

This might or might not be intended. Is there, however, an option for deleting the file automatically, when the link was deleted?

There is a good reason not to implement it in the described way. An uploaded image/file may be used in some postings/threads by someone else than the uploader. So it is easier to delete it with a FTP client than to search the whole database table for postings with a program routine or to implement a new table to administer the uploaded files and their use (wich would be IMHO the proper way).

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!


Complete thread:

 RSS Feed of thread