Added a fallback mimetype check