设置分段上传阈值

Set multipart upload threshold

在 AWS S3 CLI 中我们可以设置以下参数:

multipart_threshold - The size threshold the CLI uses for multipart transfers of individual files.

我们可以在 aws cpp sdk 客户端中做这样的事情吗?

当然,我可以设置TransferManagerConfiguration bufferSize,但那样我就不得不使用TransferManager。我只想直接用S3Client

有办法吗?

S3Client 不会自动对文件进行分区。因此,有这样的选择不会有太大帮助。

S3Client 反映了 AWS S3 服务提供的 API。更高级别的逻辑在 TransferManager 中完成。