[preivew-file] Check if can preview file before further operation