mimetype is deprecated, use content_type instead