Documentation.

Media Import.

Importing media will include image(s) or attachment(s) data.

Embedded HTML is not allowed in any field.

Each FieldName must have a corresponding XML entity.

    Example:
    <?xml version='1.0' encoding='UTF-8'?>
    <Data>
       <Row>
          <field_1>data</field_1>
          <field_2>data</field_2>
          <field_3>data</field_3>
       </Row>
    </Data>

 

Required Values

 Order   Name   Value Type 
1 assetId integer (Required)
Example XML
Additional rows can be included - Multiple images and attachments may be included with any asset.
** Note ** img, image and imagefile are not included in the fieldnames parameter.

    Single Asset, Single image, Single attachment:
    <?xml version="1.0" encoding="UTF-8"?>
    <Data>
    <Row>
      <assetId> </assetId>
      <media>
        <image>Base64 Encoded image Data</image>
      </media>
      <attachments>
        <document fileName="file.txt">Base64 Encoded text Data</document>
      </attachments>
    </Row>
    </Data>

    Single Asset, Multiple images, Multiple attachments:
    <?xml version="1.0" encoding="UTF-8"?>
    <Data>
    <Row>
      <assetId> </assetId>
      <media>
         <image>Base64 Encoded image Data</image>
         <image>Base64 Encoded image Data</image>
         <image>Base64 Encoded image Data</image>
      </media>
      <attachments>
        <document fileName="file.txt">Base64 Encoded text Data</document>
        <document fileName="file2.pdf">Base64 Encoded pdf Data</document>
        <document fileName="file3.docx">Base64 Encoded word Data</document>
        <document fileName="file4.doc">Base64 Encoded word Data</document>
        <document fileName="file5.xlsx">Base64 Encoded excel Data</document>
        <document fileName="file6.xls">Base64 Encoded excel Data</document>
      </attachments>
    </Row>
    </Data>