changed mimetype to content_type