set size when attaching filepath