catch exception when no media_file parameter is provided