Documentations › mmo.edms › js › edms Upload MMO.edms · 1 symbol · generated 5 Oct 2026
A file sent a chunk at a time: the server says where it stopped, the next chunk goes from there. A chunk that failed (the network, the server) is sent again, a few times; one the server did not expect (409) resumes where the server says.
class MMO.edms.Upload Namespace MMO.edmsconst upload = new MMO.edms.Upload(MMO.edms.Api.Shared(), file, {labels: '"#invoices"', onProgress: (u) => bar.value = u.progress});
upload.send().then((answer) => console.log(answer.file.id));
Properties1 get progress() Type numberMethods6 constructor(api, file, {name = null, labels = [], attachment = null, temporary = false, onProgress = null}) edms.js:310 constructor(api, file, {name = null, labels = [], attachment = null, temporary = false, onProgress = null} = {}) api MMO.edms.Api file File | Blob{name = null, labels = [], attachment = null, temporary = false, onProgress = null} = {}
send() returns Promise<Object>the last answer: file (the file made), or the upload's id for a temporary one
Stop the upload: what the server received is deleted
abort() async run() async sendChunk(start, end, signal) setState(state)