Administrators can update an attachment by uploading a control file asynchronously. The control file must target the previously uploaded content by its originId
.
The following lines show a control file that defines a new filename for an attachment:
<?xml version="1.0" ?>
<controlFile>
<resources>
<resource>
<filePath>path_to_the_document_to_be_updated</filePath>
<attachments>
<attachment>
<originId>origin_id_of_attachment_to_modify</originId>
<filename>new_filename</filename>
<insertAt>1</insertAt>
</attachment>
</attachments>
</resource>
</resources>
</controlFile>
- When uploading a control file asynchronously, use the same source as the content it is targeting.
- See Fluid Topics control file template for more information about the XML elements.