Skip to main content

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

NameInTypeRequiredDescription
donequerystringtruePath string
uuidbodystringtrueThe file uuid returned by the first chunk upload
filenamebodystringtrueThe name of the file to upload
totalpartsbodyintegerfalseThe number of total parts of the chunk to upload
md5bodystringfalseThe MD5 of the file to upload
filetypebodystringfalseThe type of the file to upload
totalfilesizebodyintegerfalseThe size of the file to upload

Example Body Parameters

{
"uuid": "string",
"filename": "string"
"totalparts": "integer"
}

Example Request

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);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
file_urlstringfalsenoneThe file url
file_uuidstringfalseread-onlyThe file id

Example responses

{
"file_url": "string",
"file_uuid": "string"
}