Web UI: resumable uploads via TUS with progress + resume (v0.4 #21) #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/browser-tus"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The web UI's upload was a single
POST /api/v1/files— a dropped connection at 90% of a 2 GB file meant starting over, even though the server has had TUS since v0.2.0. This wires the browser to it (vanilla JS, no library):/api/v1/tus/in 8 MiB chunks: create withUpload-Metadata: path <b64>, offset-checked PATCHes, progress bar (<progress id="upprog">) + percent in the status line. Small files keep the direct POST.(dest, size, lastModified); reselecting the same file after a crash/reload HEADs the old upload and continues from the server's offset. Cleared on success; also cleared on fatal statuses (404/410 expired, 507 quota, 413 too large) which surface as proper errors instead of retries.Verified: script extracted and
node --checkpasses; markers + single onchange handler asserted (runner workflow, since the UI has no CI coverage).Needs a human browser smoke-test before sign-off (throttle network, upload >16 MiB, kill the connection mid-way, reselect the file → should continue from the server offset).