attaching file : extra space problem is fixed