PHPackages                             aminkt/yii2-upload-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. aminkt/yii2-upload-manager

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

aminkt/yii2-upload-manager
==========================

Upload manager system based and inspired from Wordpress upload manager.

1.1.0(7y ago)03971PHP

Since Jul 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aminkt/yii2-upload-manager-module)[ Packagist](https://packagist.org/packages/aminkt/yii2-upload-manager)[ RSS](/packages/aminkt-yii2-upload-manager/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

### Yii2 Upload manage module.

[](#yii2-upload-manage-module)

[![Latest Stable Version](https://camo.githubusercontent.com/0382f4111ad35de1805a6e3082bf4ebd1d7905ad2ddcc032ddc38897dc299d97/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f762f737461626c65)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![Total Downloads](https://camo.githubusercontent.com/539bb3bdb2bd921ad4c685c2e7c89065e02019693902b2c2c283ac69c1fbccae/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![Latest Unstable Version](https://camo.githubusercontent.com/c29b3af8dad83f1b24b738c70f02238efe82c1882a7cd3a55a85496e9a8cb16f/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f762f756e737461626c65)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![License](https://camo.githubusercontent.com/46614a395ccb6e4fcf1640e97220343fdd489c63d6cce4e6e11cca021c1f2dea/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![Monthly Downloads](https://camo.githubusercontent.com/f851f3bda50db4136bf7f918f30aa94ba294ca77c8dfb3d1b066d186196d96a6/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f642f6d6f6e74686c79)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![Daily Downloads](https://camo.githubusercontent.com/fcb733e4c34a0933c6a75cfed0dc86584b2991251bf2ad0d40ea587d4c916786/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f642f6461696c79)](https://packagist.org/packages/aminkt/yii2-upload-manager)[![composer.lock](https://camo.githubusercontent.com/1f0dcf77be088029ce9d4ac0e219c2226374785c564971065e26c65d877e334c/68747470733a2f2f706f7365722e707567782e6f72672f616d696e6b742f796969322d75706c6f61642d6d616e616765722f636f6d706f7365726c6f636b)](https://packagist.org/packages/aminkt/yii2-upload-manager)

To install this module add `"aminkt/yii2-upload-anager" : ">=1.2.0"` in your `composer.json` in your project.

Then add flowing lines into your application config:

```
'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.
],
```

Then run below code to migrate up your modules:

> Run migration if you are using defualt module models.

```
php yii migrate --migrationPath="@vendor/aminkt/yii2-upload-manager"
```

> If you want to edit your files, open `['uploadManager/default/index']` in your browser.

How use upload manager widget?
------------------------------

[](#how-use-upload-manager-widget)

Add flowing lines into your view file to load upload manager widget:

```
