...
|
Checking the Progress of an Upload
Status | ||||
---|---|---|---|---|
|
/api/v2/files/upload/check/{progress_id}
You can get information about the status of an upload via this endpoint by providing the progress id of an upload.
The response will look something like this:
Code Block |
---|
{
"msg" : "Upload in progress. Please check back later.",
"uploadUrl" : "http://your-giles-org.net/giles/api/v2/resources/files/upload/UPxasNDgVKLKAl",
"uploadId" : "UPxasNDgVKLKAl",
"msgCode" : "010"
} |
You can use the upload id to get more details about the upload. If an upload has not been completely processed, the upload endpoint will return incomplete data.
Depending on if it is an error or not, the provided code will be in a different json property. Possible message codes, this endpoint returns are:
Json property | Code | Description |
---|---|---|
| 404 | An upload with the provided progress id does not exist. |
| 010 | Processing of the upload is in progress. |
Besides this, the endpoint may return the following HTTP status codes:
Status Code | Description |
---|---|
200 OK | Upload has been processed. |
202 Accepted | Processing in progress |
403 Forbidden | User does not have access to upload. |
404 Not Found | Upload with provided progress id does not exist. |
500 Internal Server Error | Something went wrong on Giles' side. |
Retrieving Data
Getting info about an upload
...