replace depricated 'mimetype' with 'content_type'