AWS:流大小为流传输载不能确定 [英] AWS: The stream size for the streaming upload cannot be determined

查看:164
本文介绍了AWS:流大小为流传输载不能确定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个图像文件的上传,从一个临时的PHP文件的存放路径为S3。文件的大小是大约100 kb的测距至最多500 kb的

I am trying to do an upload of an image file from a temporary php file storage path to S3. The file size is around a 100 kb ranging to a maximum of 500 kb.

我得到这个错误时上传情况:

I get this error when the upload happens:


Fatal error: Uncaught exception 'RequestCore_Exception' with message 'The stream size for the streaming upload cannot be determined.' in /var/www/project/releases/201303242100/application/libraries/AWS_SDK_1.6.0/lib/requestcore/requestcore.class.php:725
Stack trace:
#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,但是当我部署PHP实例在AWS上,上传给我的错误。任何帮助将AP preciated。

I don't think I need a multipart upload here because the file is not too big. Also,the upload works from my local system to S3, but when I deploy the PHP instance on AWS, upload gives me the error. Any help will be appreciated.

感谢您

推荐答案

我缺少这是正在使用的图像处理GD2库。安装后的一切工作就像一个魅力!感谢您的帮助!

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!

这篇关于AWS:流大小为流传输载不能确定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆