Could someone guide me on what would be the best way to give a client access to permanently delete unused media files from the site?
I know one way would be to give access to the /media folder via FTP to make this possible β but is there any more practical way to do this within the panel, for example?
Sorry for not being clear enough.
I am thinking on a way to display an assets section or similar, where the client can delete unused images; instead of doing it through the subpages.
You mean a global section with all images from the site? You could either set up a custom files section in site.yml which allows querying the whole site, or you create a custom Panel area for the purpose.
The problem with such a global section is that it becomes more difficult for a user to know if a file is used anywhere (unless you provide that information, which is not always easy, because images can be used in many places).
Yes that is what I want. Either of these solutions would work β having a dedicated section in the panel would be even better. Regarding the difficulty for the user to know if a file is used somewhere, that is not a problem.
Do you have any guidelines on how I could achieve such thing?
A separate files section somewhere with all files of the page (and using my filedisplay plugin which currently doesnβt work ) would be a lot easier to implement, though.
If this is a new project, you might consider setting up a central media page right from the beginning, and query all files sitewide from there.
Hey!
I managed to create a plugin that retrieves all the files uploaded to the site and allows to remove them from the /content/ folder. This solves the issue partially, as all the files are generated also to the media folder. Is there a way I can solve that? Since each file is wrapped into a folder and generates several versions for the size, is difficult to target each specific file from the media folder.