-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Implement resumable uploads for VOD (#1112)
* api: Add tus-node-server dep * asset: Implement tus upload to local filesystem * Remove alternate ways of passing uploadToken * Throw an idea for using tus metadata * WIP: Idea on how tus could be configured from VOD OS * [DEV-ONLY] Add tus-test project to test tus development Remember to delete this or make it a proper unit test once it's done. * api: moved TUS into req, added GCSStore, fixed TaskScheduler type, added gcsOptions to schema * removed auto import * update with google storage as s3 * upload.start() * upload.start() * added tests * Make resumable uploads work! * api: Move setupTus logic to asset controller Now app-router only needs to call a func * api/asset: Upload tus files to directUpload folder * api/asset: Disallow users from customizing OS * tus: setup test tus * vod: added tus resumable upload tests * tus: added mock file instead of test file * api/asset: Fix tusEndpoint returned during tests * tus: remove tus-test folder - update tests * tus: fixed tests * fix taskScheduler type * api/asset: Fix tests Was missing the tus-js-client dependency and needed to fix the check on URL format. Co-authored-by: gioelecerati <[email protected]>
- Loading branch information
1 parent
752703f
commit 0f808b4
Showing
11 changed files
with
681 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.