Make sure mimetypes is an array not object in a better way