내가 SDK를 통해 이미지를 업로드하기 위해 노력했습니다하지만 난이 오류를 얻을 :치명적인 오류 : catch되지 않은 AWS 빙하 예외 GlacierException : AWS 오류 코드 : 상태 코드 : 400, AWS 요청
치명적인 오류 AWS 오류 유형 : 클라이언트, AWS 오류 메시지 :, 사용자 에이전트 : aws-sdk-php2/2.4.3 Guzz : 오류 코드 :, 상태 코드 : 400, AWS 요청 ID :
<?php
// Include the SDK using the Composer autoloader
require 'aws-autoloader.php';
use Aws\Glacier\GlacierClient;
$client = GlacierClient::factory(array(
'key' => 'xxxxxxx',
'secret' => 'xxxxxxxx',
'region' => 'us-east-1' // (e.g., us-west-2)
));
$vaultName = 'http://xxx.xxx.xxx/vrs/images/album/default/pp.jpg';
$filename = '/www/site/test/pp.jpg';
$result = $client->uploadArchive(array(
'vaultName' => $vaultName,
'body' => fopen($filename, 'r'),
));
$archiveId = $result->get('archiveId');
var_dump($archiveId);
: 91
을에 /www/site/test/Aws/Common/Exception/NamespaceExceptionFactory.php에 던져 /3.7.2 컬/7.15.5 PHP/5.3.8는 그리고 이것은 내 테스트 코드
어떤 도움이 크게 감사한다 : 당신이 둥근 천장과 아카이브의 차이점에 대해 혼동 될 수있다 보인다
덕분에 매우에 :
또한 빙하와 업로드를 수행하기위한 코드 샘플을 제공 이러한 링크를 체크 아웃해야 많이, O (∩_∩) O – user2688100