Skip to content

Uploading and Downloading Files

Eric Domke edited this page Jul 6, 2017 · 3 revisions

Downloading Files

To download a file, change your SOAP action to DownloadFile (one of only a couple of actions that are specific to Innovator Admin). Then, specify a File item in a query such as

<Item type='File' action='get' id='A4A4318D2DB5453286E9037F173C3557' />

Uploading Files

To upload a file, simply specify an AML statement similar to the following where actual_filename points to the file you would like to upload. (You could also embed this statement in a larger AML call, such as one that adds a relationship.)

<Item type='File' action='add' id='NEW_GUID_HERE'>
  <actual_filename>C:\Path\To\File.Extension</actual_filename>
</Item>

If you want to specify the contents of the file inline with the upload request (i.e. you don't want Innovator Admin to read data from disk, specify AML similar to

<Item type='File' action='add' id='NEW_GUID_HERE'>
  <actual_data>The data that is present in your virtual file</actual_data>
  <actual_filename>C:\Fake\Path\To\File\With\Name\To\Use\In\Innovator.Extension</actual_filename>
</Item>