I would welcome an extension of the admin/content/file/thumbnails dialog by providing additional tab for scanning file usage and list files that seem to be orphaned. I would see there an action dropdown that would enable me to delete selected files as well as to pack selected files into a .gzip archive.

This managing tool would be especially useful for those who use Upload Replace module and end up with bunches of files ending with "_0", "_1", "_0_1", etc. You can never be sure which of those is really needed.

Comments

dave reid’s picture

You can actually do this right now with Views and Views Bulk Operations. Also, you have to be very careful, because Drupal and Media module does not consistently track file usage every single time it should.

tsvenson’s picture

Status: Active » Postponed

Worth mentioning especially is that WYSIWYG embedded files is currently NOT counted. See #1268116: WYSIWYG does not record file usage for more on that.

Yes, this is functionality we would like to see for Media. But, until there is a rock solid counting of file usage, then this is postponed.

Another use case here is how to treat files that was used in a previous revision.

Lastly, just because a file has an added _1, _2, etc it doesn't have to mean its a dupe. Drupal does this automatically when you upload a new file with a name that already is used.

moniuch’s picture

As per revisions, I'm not an expert to provide solutions. I'm not aware of database dependencies enough to tell you how to cope with revisions. My experience shows that it's much better to express one's needs to programmer than offer solutions. Therefore I leave the answer up to you :)
On my side, as a developer and usability-freak, is that one of the weakest side of Drupal is asset management. Because of that I really appreciate we do have such a module as Media, and I think it could have even more value if provided admin users with tools to manage the multimedia and files or give an overview of the assets. This my top-5 need as per Drupal. :)

And, in case I was not clear about it: I don't mean this feature should do the entire cleaning job. No way, tt's only meant as an overview. I would appreciate slight instructions on how it can be achieved using VBO, namely: how can a view be instructed to filter orphaned items?

As per Upload Replace module - I think you could adopt the functionality of renaming files as a simple checkbox somewhere in the configuration UI.

Thanks.

tsvenson’s picture

On my side, as a developer and usability-freak, is that one of the weakest side of Drupal is asset management.

And that is exactly the main reason the Media module, now the Media Initiative, was created. See http://groups.drupal.org/node/210613 for more on that.

I'm very happy to hear you are a "usability-freak", its something I am very passionate about myself and something we sure need more of in Drupal.

However, we are now way out of scope for this issue, so I suggest further discussions is moved to http://groups.drupal.org/media. Here it will just disappear and that would be a waste.

moniuch’s picture

So, once I have joined the group, which is the correct way to propose a new feature: by opening a poll or discussing it on IRC (even if it's not included in the syllabus), or any other way?

tsvenson’s picture

For bigger changes opening a discussion in the group is great, you can of course start by getting a feel for the interest in the IRC channel.

mpgeek’s picture

Status: Postponed » Closed (duplicate)
mpgeek’s picture

Issue summary: View changes

detail about Upload Replace