Update an attachment - Fluid Topics - Latest

Fluid Topics Control File

Category
Technical Notes
Audience
public
Version
Latest

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 shows a control file that defines a new filename for an attachment:

attachments sheet

document (originId) originId filename
path_to_the_document_to_be_updated origin_id_of_attachment_to_modify test.png
<?xml version="1.0" ?>
<controlFile>
  <resources>
    <resource>
      <originId>path_to_the_document_to_be_updated</originId>
      <attachments>
        <attachment>
          <originId>origin_id_of_attachment_to_modify</originId>
          <filename>test.png</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 XML template for more information about the XML elements.

It is not possible to define the insertAt value with a spreadsheet control file.