亚马逊s3桶上传图片卷曲异常'数据倒带不可能'

我使用codeigniter将图像上传到亚马逊存储桶。我收到此错误,我不知道该怎么办 克服此问题</ p>


致命错误:未捕获异常'Guzzle \ Http \ Exception \ CurlException',消息'[curl] 65:无法进行必要的数据重绕[ url] https ://public-ww-lk.s3.amazonaws.com/images/gallery/the-kingsbury-colombo-sri-lanka-21401-293x154.jpg '在E:\ projects \ wwlk \ application \ third_party \ Awsmy \ vendor \ guzzle \ guzzle \ src \ Guzzle \ Http \ Curl \ CurlMulti.php:338堆栈跟踪:#0 E:\ projects \ wwlk \ application \ third_party \ Awsmy \ vendor \ guzzle \ guzzle \ src \ Guzzle \ Http \ Curl \ CurlMulti.php(279):Guzzle \ Http \ Curl \ CurlMulti-&gt; isCurlException(Object(Guzzle \ Http \ Message \ EntityEnclosingRequest),Object(Guzzle \ Http \ Curl \ CurlHandle),Array)#1 E :\项目\ wwlk \ applicati on \ third_party \ Awsmy \ vendor \ guzzle \ guzzle \ src \ Guzzle \ Http \ Curl \ CurlMulti.php(244):Guzzle \ Http \ Curl \ CurlMulti-&gt; processResponse(Object(Guzzle \ Http \ Message \ EntityEnclosingRequest), 对象(Guzzle \ Http \ Curl \ CurlHandle),数组)#2 E:\ projects \ wwlk \ application \ third_party \ Awsmy \ vendor \ guzzle \ guzzle \ src \ Guzzle \ Http \ Curl \ CurlMulti.php(227):Guzzle \ Http \ Curl \ CurlMulti-&gt; processMessages()#3 E:\ pro在E:\ projects \ wwlk \ application \ third_party \ Awsmy \ vendor \ aws \ aws-sdk-php \ src \ Aws \ Common \ Client \ 第285行的AbstractClient.php </ p>
</ blockquote>
</ div>

展开原文

原文

I am using codeigniter to upload images to a amazon storage bucket.Iam getting this error and i dont know what to do to overcome this problem

Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 65: necessary data rewind wasn't possible [url] https://public-ww-lk.s3.amazonaws.com/images/gallery/the-kingsbury-colombo-sri-lanka-21401-293x154.jpg' in E:\projects\wwlk\application\third_party\Awsmy\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php:338 Stack trace: #0 E:\projects\wwlk\application\third_party\Awsmy\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php(279): Guzzle\Http\Curl\CurlMulti->isCurlException(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #1 E:\projects\wwlk\application\third_party\Awsmy\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php(244): Guzzle\Http\Curl\CurlMulti->processResponse(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #2 E:\projects\wwlk\application\third_party\Awsmy\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php(227): Guzzle\Http\Curl\CurlMulti->processMessages() #3 E:\pro in E:\projects\wwlk\application\third_party\Awsmy\vendor\aws\aws-sdk-php\src\Aws\Common\Client\AbstractClient.php on line 285

doufuhuang6981
doufuhuang6981 看看这个链接,它可能会有所帮助。github.com/aws/aws-sdk-php/issues/140
6 年多之前 回复

1个回答



尝试将 CURL </ strong>选项 body_as_string </ code>设置为 true </ code> 。</ p>

这样的事情:</ p>

 &lt;?php 

$ client-&gt; getConfig() - &gt; set ('curl.options',array('body_as_string'=&gt; true));
</ code> </ pre>
</ div>

展开原文

原文

Try setting CURL option body_as_string to true.

Something like this:

<?php

$client->getConfig()->set('curl.options', array('body_as_string' => true));

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐