PHP code example of yii-ext / plupload

1. Go to this page and download the library: Download yii-ext/plupload 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/ */

    

yii-ext / plupload example snippets


            $this->widget('FileUploader', array(
                'id' => 'filelist',
                'uploadUrl' => array('upload'),
                'files' => $userModel->files,
                'maxFileCount' => 3,
                'clientOptions' => array(
                    'filters' => array(
                        'mime_types' => array(
                            array(
                                'title' => 'Documents',
                                'extensions' => implode(',', Yii::app()->params['allowedUserFileTypes']),
                            )
                        ),
                        'max_file_size' => '2mb',
                        'prevent_duplicates' => true,
                    ),
                ),
            ));