2017 © Pedro Peláez
 

yii2-extension yii2-fileapi-widget

The FileAPI widget for Yii2 framework.

image

akula22/yii2-fileapi-widget

The FileAPI widget for Yii2 framework.

  • Friday, March 16, 2018
  • by akula22
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 32 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

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 akula22/yii2-fileapi-widget "*"

or add, (*4)

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

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

Usage:

// MyController.php

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

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

use akula22\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 akula22\fileapi\Widget as FileAPI;
...

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

The Versions

16/03 2018

dev-master

9999999-dev

The FileAPI widget for Yii2 framework.

  Sources   Download

BSD-3-Clause

The Requires

 

by Kostya Nikitin

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