Uploading files to the DAM Center is done 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 calling method AddUploadFile with the name of the file to upload. Returns uploadid (and itemid in Digizuite 4.8.0+)
- 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.
- Submit / finalize the upload by calling SubmitUpload.
After SubmitUpload, the job system will begin all necessary transcodes and other workflow defines steps. As stated, it is also possible to work with the asset before the actual file has been uploaded. This is possible because all the metadata service endpoint needs, is the itemId. You get that already from the first step in the upload process (second if running an older DAM Center).