Fixing a bug where correct extensions were being rejected as invalid for mime type