Use mimetype instead of file