@@ -31,6 +31,7 @@ one Datasrouce has one S3 Bucket connection.
3131 'key' => 'put your s3 access key',
3232 'secret' => 'put your s3 access secret',
3333 'bucketName' => 'put your bucket name',
34+ 'region' => 'put your region',
3435 ],
3536],
3637```
@@ -42,7 +43,7 @@ Setup new table using s3 connection.
4243
4344```
4445<?php
45- namespace App\Model\Table\ ;
46+ namespace App\Model\Table;
4647
4748use CakeS3\Datasource\AwsS3Table;
4849
@@ -52,7 +53,7 @@ class MyS3Table extends AwsS3Table
5253}
5354```
5455
55- For example, declare action of get & show S3 Object.
56+ For example, declare action of get & show S3 Object.
5657
5758```
5859class TopController extends Controller
@@ -61,10 +62,10 @@ class TopController extends Controller
6162 {
6263 $MyS3Table = TableRegistry::get('MyS3');
6364 $content = $MyS3Table->getObjectBody('/path/to/object/file.jpg');
64-
65+
6566 $this->response->type('image/jpeg');
6667 $this->response->body($content);
67-
68+
6869 return $this->response;
6970 }
7071}
@@ -77,7 +78,7 @@ class TopController extends Controller
7778
7879The methods can call on your S3 Table.
7980
80- If You want more detail, go to S3Client document.
81+ If You want more detail, go to S3Client document.
8182[ http://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.S3.S3Client.html ] ( http://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.S3.S3Client.html )
8283
8384#### ``` copyObject(string $srcKey, string $destKey, array $options = []) : \Aws\Result ```
0 commit comments