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:
- 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+)
- if the is not itemid is already returned in step 1, then get itemid by calling method GetItemIdFromUploadId
- Upload file to server by calling method UploadFileChunks (note we use chunked upload because IIS has a limit of 2GB)
- call method 04 - For DAM Center < 4.8.0 you need to get an itemId by calling method GetItemIdFromUploadId
- Invoke method UploadFileChunks to send the data in chunks.
- 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.
- Submit / finalize the upload by calling SubmitUpload.