2017 © Pedro Peláez
 

yii2-extension yii2-fileapi-widget

The FileAPI widget for Yii2 framework.

image

vova07/yii2-fileapi-widget

The FileAPI widget for Yii2 framework.

  • Sunday, May 27, 2018
  • by vova07
  • Repository
  • 13 Watchers
  • 55 Stars
  • 29,940 Installations
  • PHP
  • 11 Dependents
  • 0 Suggesters
  • 32 Forks
  • 9 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

WARNING: This extension is not more maintained (The base JS script FileAPI was deprecated)

Yii2 FileAPI widget.

This widget is a Yii 2 wrapper of FileAPI plugin., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist vova07/yii2-fileapi-widget "*"

or add, (*4)

"vova07/yii2-fileapi-widget": "*"

to the require section of your composer.json file., (*5)

Usage:

// MyController.php

use vova07\fileapi\actions\UploadAction as FileAPIUpload;
...

public function actions()
{
    return [
        'fileapi-upload' => [
            'class' => FileAPIUpload::className(),
            'path' => '/path/to/temp/files'
        ]
    ];
}
// MyModel.php

use vova07\fileapi\behaviors\UploadBehavior;
...

public function behaviors()
{
    return [
        'uploadBehavior' => [
            'class' => UploadBehavior::className(),
            'attributes' => [
                'preview_url' => [
                    'path' => '/path/to/previews',
                    'tempPath' => '/path/to/temp/files/previews',
                    'url' => '/url/to/previews'
                ],
                'image_url' => [
                    'path' => '/path/to/images',
                    'tempPath' => '/path/to/temp/files/images',
                    'url' => '/url/to/images'
                ]
            ]
        ]
    ];
}
// _form.php

use vova07\fileapi\Widget as FileAPI;
...

echo $form->field($model, 'preview_url')->widget(
    FileAPI::className(),
    [
        'settings' => [
            'url' => ['/controller/fileapi-upload']
        ]
    ]
);

The Versions

27/05 2018

dev-master

9999999-dev

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

24/03 2017

0.1.9

0.1.9.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

06/03 2015

0.1.8

0.1.8.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

01/03 2015

0.1.7

0.1.7.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

13/02 2015

0.1.6

0.1.6.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

12/02 2015

0.1.5

0.1.5.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

19/01 2015

0.1.4

0.1.4.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

17/01 2015

0.1.3

0.1.3.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

18/12 2014

0.1.2

0.1.2.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

05/11 2014

0.1.1

0.1.1.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload

21/10 2014

0.1.0

0.1.0.0

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 upload yii 2 widget files fileapi multiupload