diff --git a/app/components/lib/uppy.ts b/app/components/lib/uppy.ts index 3dc123c..d07ab95 100644 --- a/app/components/lib/uppy.ts +++ b/app/components/lib/uppy.ts @@ -98,8 +98,13 @@ export function useUppy({ const file = uppyInstance.current?.getFile(fileID) as UppyFile // @ts-ignore if (file.uploader === "tus") { + const options = await sdk.protocols!().get(PROTOCOL_S5).getSdk().getTusOptions(file.data as File) uppyInstance.current?.setFileState(fileID, { - tus: await sdk.protocols!().get(PROTOCOL_S5).getSdk().getTusOptions(file.data as File) + tus: options, + meta: { + ...options.metadata, + ...file.meta, + } }) } }