Enable Category/Tag support for WordPress Media files

To enable category/tag support on WordPress Media, You have to register taxonomy for Media(attachment) by adding following code in theme function.php
or in plugin file
register_taxonomy( 'media-category', 'attachment', $args );
Note : This will work with WordPress 3.5 or higher.