add paritional files uploading for minIO

This commit is contained in:
2026-04-14 21:42:22 +02:00
parent 48d3c6f857
commit 60a02b73c0
5 changed files with 21 additions and 15 deletions
+2
View File
@@ -68,6 +68,8 @@ func upload(ctx context.Context, key string, body io.Reader, size int64, content
_, err := minClient.PutObject(ctx, globals.FileStorageBucketName, key, body, size,
minio.PutObjectOptions{
ContentType: contentType,
PartSize: globals.FileProcessingPartSize,
NumThreads: globals.FileProcessingThreads,
})
return err
}