removed mime type check