Which parts the server holds
GET
/attachment-uploads/{id}
const url = 'https://api.engram.page/attachment-uploads/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.engram.page/attachment-uploads/example \ --header 'Authorization: Bearer <token>'For a client resuming an upload: the part numbers already stored, and completed once complete committed the session (complete again returns the attachment).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Upload id
Responses
Section titled “Responses”Upload state
Media typeapplication/json
AttachmentUploadStatus
object
completed
required
Complete already committed; complete again returns the attachment.
boolean
done
required
Array<integer>
part_count
required
integer
part_size
required
integer
Example generated
{ "completed": true, "done": [ 1 ], "part_count": 1, "part_size": 1}No such upload