Fix set size and name on attachments for import api