Save file attachments via logic