Uploading assets to the library

Uploading a file

To upload the file, use the following Content Storage Service (CSS) API call: 

POST: /v3/files/fromStream?tenant={{tenant_id}} 

You need your tenant ID to store the uploaded file in the correct tenant storage in CSS.  

The request payload content type needs to be a multipart/form-data with file content. The request body is as follows:

Request body

file - {FILE_CONTENT}

The API call returns a response that is similar to the following: 

Response

{
    "authZCallback": {},
    "originalFileName": "nature.jpg",
    "mimeType": "image/jpeg",
    "id": "b02215e5-69c4-4c58-bae9-95d9ffa08102", 
    "uploadState": "complete",
    ....... 
} 

The property ID is the blob_id and you will use it in the next step.

Your Progress

Uploading a file