User error instead
Don't convert to lower case and check if mimetype is not null