mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 18:01:42 +00:00
Split each uploaded file into 5 MB chunks posted sequentially to a new /api/upload/chunk endpoint, then assemble them on the server via /api/upload/finalize. The client queries /api/upload/chunk/:uploadId/:fileIndex to skip chunks already received, so an interrupted upload resumes instead of restarting. Each chunk is retried with backoff. Path components are sanitized and the same canUpload/library-access checks as /api/upload are enforced. The legacy /api/upload endpoint is left intact. The chunk staging directory defaults to <metadata>/uploads and can be relocated with UPLOAD_TEMP_DIR so large in-progress uploads can be staged off the metadata volume. |
||
|---|---|---|
| .. | ||
| index.vue | ||