GuideLab Docs

The computer finishes sending a file

Completes the upload from the server's own part listing (the body, `{}`, is not read). When the item's last file is in, the item is filed. 409 UPLOADER_UPLOAD_INCOMPLETE when parts are missing: ask for their URLs and send them again.

POST
/uploader/device/files/{fileId}/g/{gen}/complete

Completes the upload from the server's own part listing (the body, {}, is not read). When the item's last file is in, the item is filed. 409 UPLOADER_UPLOAD_INCOMPLETE when parts are missing: ask for their URLs and send them again.

Authorization

uploaderKey
Authorization<token>

Uploader <key>: the 43 base64url characters a Guidelab Uploader computer made and registered by its SHA-256 (POST /uploader/computers). Accepted only on /uploader/device/*; revoking the computer ends it.

In: header

Path Parameters

fileId*string
Length1 <= length <= 200
gen?|
Range0 <= value <= 2147483647

Response Body

application/json

curl -X POST "https://example.com/uploader/device/files/string/g/{gen}/complete"
{  "fileId": "string",  "generation": 0,  "state": "pending",  "partSize": 1,  "partCount": 1}
Empty
Empty
Empty
Empty
Empty
Empty