diff --git a/storage/storage.go b/storage/storage.go index 8bc3b1d..27c8748 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -639,3 +639,6 @@ func (s *StorageServiceImpl) GetFile(hash []byte, start int64) (io.ReadCloser, i return object.Content, int64(upload.Size), nil } +func (s *StorageServiceImpl) NewFile(hash []byte) interfaces.File { + return NewFile(hash, s) +}