1. Go to this page and download the library: Download dungang/yii2-file-storage library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dungang / yii2-file-storage example snippets
Class LocalController extends Controller {
public function actions(){
return [
'init-upload'=>[
'class'=>'dungang\storage\InitAction'
],
'chunk-upload'=>[
'class'=>'dungang\storage\ChunkUploadAction'
],
'delete'=>[
'class'=>'dungang\storage\DeleteAction'
],
];
}
}