mimetype was deprecated in 1.5 and removed in 1.7, replaced by content_type