Fixed corrupted attachment problem when posting XML with multiple embedded attachments.