The following objects are used in multiple endpoints within the Upload API.
Response Body
| Element | Description | Type | Notes |
|---|---|---|---|
| chunkCount | The number of file chunks that have been uploaded. | integer | None |
| chunkIndexes | List of index positions for different file chunk uploads. | array | The overall file chunk index starts at 0. |
| chunksCompleted | True/false indicator of whether the number of uploaded file chunks matches the total number of chunks that compose the upload. | Boolean | None |
| encoding | The type of encoding used for text files. | string | None |
| fileName | The name of the uploaded file. | string | None |
| fileSize | The size of the uploaded file. | integer | Values are in bytes. If the size is unknown, -1 is returned. |
| hasContent | True/false indicator of whether the upload includes associated content. | Boolean | An upload that does not include associated content consists only of metadata. |
| id | Alphanumeric ID of the uploaded file. | string | None |
| mimeType | The MIME type of the uploaded file. | string | None |
| partialFileSize | The total number of bytes that have been uploaded successfully as chunks. | integer | Matches the fileSize value once all chunks have been uploaded. |
| properties | List of non-system properties that can be added to supplement the system properties. | array | Not included in the response if non-system properties have not been used in the upload. |
| status | The current status of the upload. | string | Any of the following values may be displayed:
|
Sample Response
{
"chunkCount": 0,
"chunkIndexes": [
0
],
"chunksCompleted": true,
"encoding": "UTF-8",
"fileName": "string",
"fileSize": 0,
"hasContent": true,
"id": "string",
"mimeType": "plain/text",
"partialFileSize": 0,
"properties": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"status": "INCOMPLETE"
}