Handle attachments during editing