move file name to attribute