Download the PHP package sweelix/yii2-plupload without Composer
On this page you can find all versions of the php package sweelix/yii2-plupload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-plupload
Sweelix Yii2 Plupload extension
Sweelix Plupload extension for Yii 2 has been created to ease Plupload integration.
Plupload is not affiliated with Sweelix
Be carefull, Plupload (http://www.plupload.com/) is multi-licensed. Take care of the license which applies to :
- GPLv2 : http://www.plupload.com/license/gplv2
- Commercial : http://www.plupload.com/license/oem
Installation
If you use Packagist for installing packages, then you can update your composer.json like this :
Howto use this extension
Once package has been installed:
activate Image management,by adding it to Yii components
add the extension in your helper class :
Basic usage
Sample one : one single file upload with basic UI and Automatic upload
The controller file
The index view file
Sample two : multi-file upload with basic UI and Automatic upload
The controller file (nothing was changed in the controller)
The index view file, the square brackets here tell plupload to use multifile upload
Config parameter this parameter allow the developper to configure plupload
Here are the default configuration
PHP name | Plupload name | Default value |
---|---|---|
runtimes | runtimes | html5, html4 |
multiSelection | multi_selection | false |
maxFileSize | max_file_size | 0 |
chunkSize | chunk_size | 10Mb |
uniqueNames | unique_names | false |
flashSwfUrl | flash_swf_url | null |
silverlightXapUrl | silverlight_xap_url | null |
browseButton | browse_button | null |
dropElement | drop_element | null |
container | container | null |
multipart | multipart | null |
multipartParams | multipart_params | null |
requiredFeatures | required_features | null |
filters | filters | null |
headers | headers | null |
Model usage with manual file management
The model file
The controller file
The index view file
Model usage with automatic file management
The model file
The controller file
The index view file
Contributing
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch , and send us a pull request.