fix: need to get a new reader to stream the file
This commit is contained in:
parent
7d80efb278
commit
bcf2998faa
|
@ -506,6 +506,12 @@ func (s *StorageServiceImpl) buildNewTusUploadTask(upload *models.TusUpload) (jo
|
||||||
return err
|
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)
|
err = s.PutFile(reader, s.portal.Config().GetString("core.storage.s3.bucket"), dbHash)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue