I wonder how I can tag files directly on upload.
The module is installed and I can select "Library (MBP)" and "My files (MBP)" for the browser. But there is no tagging possibility while uploading a file from within an entity form...

Comments

jisuo’s picture

I too would like to have an answer for this. Can't find any tagging fields anywhere.

gdaw’s picture

Perhaps the main page description for this module should change "Adding tags to media when uploading." to something more accurate like "Adding organizational Folder/Sub-Folder tags to media when uploading or editing files."

I don't see any free-tagging options, which is what I thought was available, however it looks like this is actually an item for future development. "Updating and applying taxonomies read from media files e.g. tags added to images"

gdaw’s picture

Category: Support request » Feature request
PhilY’s picture

Using Media, files are entities so adding fields is as easy as with regular content types.
Create the taxonomy vocabulary you wish to use for media free tagging and go to Structure > File types > (the type you wish to alter) > Manage fields.
For example, for Image file type, go to /admin/structure/file-types/manage/image/fields
Then, add a field referencing the aformentioned vocabulary.

And you can do the same with any media type and add as many fields as wished. You need "credit/copyright" or "caption" field? just add them.

Don't forget to have a look at "Manage file display" tab on your media type. Once again, as you would do with regular content types.

Then, as Media Browser & Media Browser Plus libraries are both regular views, you can alter that view to have your taxonomy term been displayed and add an exposed filter.

This all work natively and is not an issue.

Hope this will help you.

gdaw’s picture

Thank you @PhilY for the input. I agree with you that this should all work natively and not be an issue, and so it is properly categorized as a Feature request.

Since neither Media nor Media Browser Plus offer free-tagging functionality I went ahead and created a github repo to easily bring media files tagging into our distro, and added some steps for full integration with Files and Media.

Perhaps MBP can be easily upgraded with free-tagging of media files by leveraging this new WetKit Media feature that I've created for the Web Experience Toolkit.

Key Features
------------

* Builds upon the [Media][media] module and Drupal core Files
* Creates a new taxonomy called Media File Tags.
* Adds an autocomplete term reference field Media File Tags to all file types. (Image, Video, Audio, Document, and WetKit Video)
* Creates a new files administration View page (wetkit-media-admin) with Media File Tags displayed and searchable.
* Integrates with the WYSIWYG Media Browser.
* Can be easily integrated with the default Files administration View page.

Further integration possible with a few simple manual steps

Add media tags to the default files administration page (/admin/content/file).
* Edit the View called Administration: Files (/admin/structure/views/view/admin_views_file/edit).
* Add the new Field called File: Media File Tags, then click Add and configure fields.
* Shorten the Label text to only Tags.
* Uncheck Place a colon after the label.
* Change the Formatter to Plain text, then click Apply.
* Rearrange the fields to place File: Media File Tags in between File: Name Title and File: Type Type

* Add a Filter criteria
* Add the new Field called File: Media File Tags, then click Add and configure filter criteria.
* Select the option to Autocomplete, then click Apply and Continue.
* Check the option Expose this filter to visitors, to allow them to change it.
* Shorten the Label text to only Tags.
* Check the option to Expose operator.
* Check the option to Allow multiple selections.
* Check the option to Remember the last selection, then click Apply.
* Complete the changes to Files admin page by clicking on Save in the top right corner of the View.

PhilY’s picture

I agree that even if adding field can be done by hand, it'll be a very useful feature to have free tagging bundled.

gdaw’s picture

Title: How to tag files? » Adding tags to files for easier management
Status: Active » Needs work
fgjohnson@lojoh.ca’s picture

We have done exactly this.and its awesome...

Added 2 vocabularies to tye file__type Image and updated the admin/content/files view to have additional fields and exposed filters.
We also needed to expose the vocabularies as filters in the Library Tab of Media.

Now I need to featurize these mods to commmit to git and add to a build... however, I can't find the views when I try to create the new featire. All the fields seem to exist but the voews are not findable.

What gives?