fixed #22

Modified to preview the attached file for the edit page