Catch mimetype exception, avoid site error if mimetype is not recognized.
Catch mimetype exception, avoid site error if mimetype is not recognized.