1

我正在尝试将图像文件从临时 php 文件存储路径上传到 S3。文件大小约为 100 kb,最大为 500 kb。

上传发生时出现此错误:

致命错误:未捕获的异常“RequestCore_Exception”,消息“无法确定流式上传的流大小。” 在 /var/www/project/releases/201303242100/application/libraries/AWS_SDK_1.6.0/lib/requestcore/requestcore.class.php:725
堆栈跟踪:
#0 /var/www/project/releases/201303242100/application/libraries/AWS_SDK_1.6.0/lib/requestcore/requestcore.class.php(843): RequestCore->prep_request()
#1 /var/www/project/releases/201303242100/application/libraries/AWS_SDK_1.6.0/services/s3.class.php(954): RequestCore->send_request()
#2 /var/www/project/releases/201303242100/application/libraries/AWS_SDK_1.6.0/services/s3.class.php(1465): AmazonS3->authenticate(
......

我认为我不需要在这里进行分段上传,因为文件不是太大。此外,上传工作从我的本地系统到 S3,但是当我在 AWS 上部署 PHP 实例时,上传给了我错误。任何帮助将不胜感激。

谢谢你

4

1 回答 1

0

I was missing the gd2 library which was being used for the image handling. After installing it everything worked like a charm! Thanks for the help!

于 2013-04-04T14:25:21.577 回答