keygenqt / upload-s3
Widget from form image ajax load.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/dropzone: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-05 18:15:44 UTC
README
Upload file to s3. Checked yii2 and yii1 (php 5.3)
Installation
The preferred way to install this extension is through composer.
Either add
"require": {
"keygenqt/upload-s3": "*"
}
of your composer.json
file.
Latest Release
The latest version of the module is v0.5.0 BETA
.
Usage
Config:
'uploadS3' => [ 'class' => 'keygenqt\uploadS3\UploadS3', 'key' => '...', 'secret' => '...', 'bucket' => '...', 'static_url' => 'http://domen.com/', (optional) ]
Upload:
public function uploadIcon($path, $name) { if(($url = Yii::$app->uploadS3->upload($path, $name)) !== false) { return $url; } return false; }
License
upload-s3 is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details.