Cna you look up the mime-type from the dictionary above in the file instead of hardcoding the list of supported mime-types?