From eea567d89eb2352fcd578e753b621d26f3217a1c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 29 Mar 2024 12:05:46 -0400 Subject: [PATCH] fix: disable local storage by using NoopUrlStorage --- app/components/lib/uppy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/lib/uppy.ts b/app/components/lib/uppy.ts index 86014fb..47e1601 100644 --- a/app/components/lib/uppy.ts +++ b/app/components/lib/uppy.ts @@ -1,4 +1,5 @@ import Uppy, { debugLogger, FailedUppyFile, type State, type UppyFile } from "@uppy/core"; +import NoopUrlStorage from "tus-js-client/lib.es5/noopUrlStorage.js"; import Tus from "@uppy/tus"; import toArray from "@uppy/utils/lib/toArray"; @@ -170,7 +171,7 @@ export function useUppy() { }); if (useTus) { - uppy.use(Tus, { limit: 1, parallelUploads: 1, chunkSize: 1024 * 1024 }); + uppy.use(Tus, { limit: 1, parallelUploads: 1, chunkSize: 1024 * 1024, urlStorage: new NoopUrlStorage() }); uppy.addPreProcessor(tusPreprocessor); }