get the right file on preview