From 4db07d51708384ddfe13556ea8dc7096d25c16f1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 2 Mar 2024 06:24:12 -0500 Subject: [PATCH] fix: need to pass tus --- api/s5/file.go | 1 + api/s5/s5.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/s5/file.go b/api/s5/file.go index d5790fe..c4ddffc 100644 --- a/api/s5/file.go +++ b/api/s5/file.go @@ -336,6 +336,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) { Metadata: f.metadata, Hash: file.File.CID().Hash.HashBytes(), Type: file.File.CID().Type, + Tus: f.tus, })) } diff --git a/api/s5/s5.go b/api/s5/s5.go index 1ae4572..e9e078a 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -1841,6 +1841,7 @@ func (s *S5API) newFile(params FileParams) *S5File { params.Protocol = s.protocol params.Metadata = s.metadata params.Storage = s.storage + params.Tus = s.tusHandler return NewFile(params) }