修复上传minio路径错误
This commit is contained in:
@@ -130,7 +130,7 @@ func (s *concatService) Concat(ctx context.Context, req *ConcatReq) (res *Concat
|
||||
|
||||
// 如果需要上传到 MinIO(用独立 context,避免 HTTP 断开后 ctx 被取消)
|
||||
if req.Upload {
|
||||
uploadCtx := context.Background()
|
||||
uploadCtx := context.WithValue(context.Background(), "user", getUserFromCtx(ctx))
|
||||
uploadRes, uploadErr := s.UploadToMinIO(uploadCtx, outputPath)
|
||||
if uploadErr != nil {
|
||||
return nil, fmt.Errorf("上传到MinIO失败: %v", uploadErr)
|
||||
|
||||
Reference in New Issue
Block a user