Currently, the explicit mimetype is ignored. Will rework.