upload: Use @uppy/tus to upload files through tusd.

Replace the XHRUpload plugin for Uppy with the Tus plugin, to make use
of the new tusd endpoint.  This allows for resumable files, as well as
files which are larger than comfortably fit in memory (the source of
the old 25MB limit).

MAX_FILE_UPLOAD_SIZE is still applied, but can safely be raised above
25MB.

Fixes: #9391.

Co-authored-by: Brijmohan Siyag <brijsiyag@gmail.com>
This commit is contained in:
Alex Vandiver
2024-09-10 18:39:20 +00:00
committed by Tim Abbott
parent 818c30372f
commit 94dad72b75
4 changed files with 161 additions and 75 deletions

View File

@@ -13,9 +13,10 @@
"@giphy/js-fetch-api": "^5.6.0",
"@koa/bodyparser": "^5.0.0",
"@sentry/browser": "^7.51.2",
"@uppy/core": "^4.0.1",
"@uppy/core": "^4.2.0",
"@uppy/drag-drop": "^4.0.2",
"@uppy/progress-bar": "^4.0.0",
"@uppy/xhr-upload": "^4.0.1",
"@uppy/tus": "^4.1.0",
"@zxcvbn-ts/core": "^3.0.1",
"@zxcvbn-ts/language-common": "^3.0.2",
"@zxcvbn-ts/language-en": "^3.0.1",