Reworking attachments/form value so file content gets stored as attachment