Chunk Upload Done
This endpoint finalizes the chunk upload and creates the File
info
This operation requires authentication
HTTP Request
POST /api/v2/pm/upload/?done/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
done | query | string | true | Path string |
uuid | body | string | true | The file uuid returned by the first chunk upload |
filename | body | string | true | The name of the file to upload |
totalparts | body | integer | false | The number of total parts of the chunk to upload |
md5 | body | string | false | The MD5 of the file to upload |
filetype | body | string | false | The type of the file to upload |
totalfilesize | body | integer | false | The size of the file to upload |
Example Body Parameters
- JSON
{
"uuid": "string",
"filename": "string"
"totalparts": "integer"
}
Example Request
- JavaScript
- Bash
const inputBody = '{
"uuid": "string",
"filename": "string",
"totalparts": "integer"
}';
const headers = {
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/pm/upload/?done/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X POST /api/v2/pm/upload/?done/ \
-H "Authorization: Bearer {access_token}"
--body-data 'uuid=5ffbebd3-60a7-4b35-ba39-74e7021b0e44&filename=compressed.tracemonkey-pldi-09.pdf&totalparts=5' \
'https://apiv2.quentrix.com/api/v2/pm/upload/?done'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
file_url | string | false | none | The file url |
file_uuid | string | false | read-only | The file id |
Example responses
- 200
{
"file_url": "string",
"file_uuid": "string"
}