Added mime type checking to fineuploader