Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Uploading files is also possible through the API. It to the DAM Center is done doing as a sequence of steps which gives the following advantages:

  • Support for uploading any file size.
  • Ability to resume broken uploads from the client.
  • Add metadata before or during actual file data is sent.


The steps in order:

  1. Initiate upload by upload by calling method AddUploadFile with the name of the file to upload. This returns  Returns uploadid (and itemid in Digizuite 4.8.0+)
  2. if the is not itemid is already returned in step 1, then get itemid by calling method GetItemIdFromUploadId
  3. Upload file to server by calling method UploadFileChunks (note we use chunked upload because IIS has a limit of 2GB)

  4. call method 04 - For DAM Center < 4.8.0 you need to get an itemId by calling method GetItemIdFromUploadId

  5. Invoke method UploadFileChunks to send the data in chunks.

  6. Invoke method SetTransferMode to determine how the job system should handle the file (99% of the time this should be 1).Lastly, submit the upload by calling SubmitUpload to enable the job system to start processing.

  7. Submit / finalize the upload by calling SubmitUpload.