Fix length of mimetype and update settings.