如何解决 AWS S3 中的“HttpVersionNotSupported”错误?

Ron*_*tel 5 amazon-s3 amazon-web-services

当我尝试存储大文件时,出现以下错误:

消息:S3::putObject(): [HttpVersionNotSupported] 不支持指定的 HTTP 版本。

小智 3

我在 Codeigniter S3 中遇到了同样的问题,问题是在发送文件名参数时,$this->s3->putObjectFile($fileTempName, "examplebucketname", $fileName, S3::ACL_PUBLIC_READ)如果目标文件名中有空格,则会发生这种情况。