2017 © Pedro Peláez
 

yii2-extension upload-s3

Widget from form image ajax load.

image

keygenqt/upload-s3

Widget from form image ajax load.

  • Monday, February 22, 2016
  • by keygenqt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

upload-s3

Upload file to s3. Checked yii2 and yii1 (php 5.3), (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either add, (*3)

"require": {
    "keygenqt/upload-s3": "*"
}

of your composer.json file., (*4)

Latest Release

The latest version of the module is v0.5.0 BETA., (*5)

Usage

Config:, (*6)

'uploadS3' => [
    'class' => 'keygenqt\uploadS3\UploadS3',
    'key' => '...',
    'secret' => '...',
    'bucket' => '...',
    'static_url' => 'http://domen.com/', (optional)
]

Upload:, (*7)

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., (*8)

The Versions

22/02 2016

dev-master

9999999-dev https://github.com/keygenqt/upload-s3

Widget from form image ajax load.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 s3 upload