fix: need to get a new reader to stream the file

This commit is contained in:
Derrick Hammer 2024-01-20 12:26:31 -05:00
parent 7d80efb278
commit bcf2998faa
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

View File

@ -506,6 +506,12 @@ func (s *StorageServiceImpl) buildNewTusUploadTask(upload *models.TusUpload) (jo
return err
}
reader, err = tusUpload.GetReader(ctx)
if err != nil {
s.portal.Logger().Error("Could not get tus file", zap.Error(err))
return err
}
err = s.PutFile(reader, s.portal.Config().GetString("core.storage.s3.bucket"), dbHash)
return nil