· 6 years ago · Mar 15, 2019, 01:36 PM
1public $actsAs = array(
2'Uploader.Attachment' => array(
3 'image' => array(
4 'baseDir' => '',
5 'uploadDir' => '',
6 'dbColumn' => 'image',
7 'importFrom' => '',
8 'defaultPath' => '',
9 'maxNameLength' => 30,
10 'overwrite' => true,
11 'stopSave' => true,
12 'allowEmpty' => true,
13 'transforms' => array(),
14 's3' => array(
15 'accessKey' => 'access_key',
16 'secretKey' => 'secret_key',
17 'ssl' => true,
18 'bucket' => 'my_bucket',
19 'path' => '/' //enter dynamic folder name here
20 )
21 )
22)
23);