adjustments on attachments upload