In the preview dialog, select only the filename