audiobookshelf/server/routers
Boris Rybalkin 669e0255a9 Add chunked, resumable uploads
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.
2026-06-10 22:06:38 +01:00
..
ApiRouter.js Add chunked, resumable uploads 2026-06-10 22:06:38 +01:00
HlsRouter.js Update:HLS router request validation, smooth out transcode reset logic 2023-10-14 12:50:48 -05:00
PublicRouter.js Add new api endpoint for direct playing audio files using session id #4259 2025-05-05 17:00:43 -05:00