check for mime type when uploading files