The key is being set here.

`getHumanFileType()` throws an exception when the mime type doesn't have a defined human file type.