1. Go to this page and download the library: Download aminkt/yii2-upload-manager 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/ */
aminkt / yii2-upload-manager example snippets
'upload-manager' => [
'class' => aminkt\uploadManager\UploadManager::class,
'uploadPath'=>Yii::getAlias("@frontendWeb")."/upload",
'uploadUrl'=> "/upload",
'baseUrl' => 'http://localhost:800',
'acceptedFiles'=>"*",
'userClass' => 'user/class/namespcae',
'fileClass' => 'file/class/namespcae', // Don't set this to use default active record.
'fileSearchClass' => 'file/search/class/namespcae', // Don't set this to use default search active record.
],