commit the media file also