我用过aws sdk(
https://github.com/aws/aws-sdk-php).
码
$result = $client->putObject(array( 'Bucket' => $bucket,'Key' => $key,'Body' => $file,'ACL' => 'public-read',));
它运作良好,但我有一个问题:
谢谢.
它在响应中返回.见
API docs for putObject.
$result = $client->putObject(array( 'Bucket' => $bucket,)); $url = $result['ObjectURL'];
$url = $client->getObjectUrl($bucket,$key);