Files that get uploaded to the server are all assigned a MIME type. This includes all the files that come with a plugin or a layout.
This plugin handles hundred of MIME types. It includes icons to dislpay for a given type. It knows the name and equivalents of many types.