2017 © Pedro Peláez
 

cakephp-plugin plupload

CakePHP Plugin for plupload

image

junichi11/plupload

CakePHP Plugin for plupload

  • Friday, May 24, 2013
  • by junichi11
  • Repository
  • 3 Watchers
  • 11 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CakePHP Plupload Plugin

Download

  • CakePHP Plupload Plugin
  • jQueryUI
  • plupload

Settings

  • Put this plugin app/Plugin/Plupload
  • Put jquery-ui Plugin/Plupload/webroot/jquery-ui
  • Put pl(rename plupload/javascript -> plupload/pl) Plugin/Plupload/webroot/pl

Add upload action

Add upload.php process to PluploadController upload action., (*1)

Language

use /pl/i18n/ja.js (if you want to use Japanese), (*2)

Please set as follows., (*3)

$this->Plupload->setUploaderOptions(array(
    'locale' => 'ja',
    ...,
);

Usage

Contoller

class HogeController extends AppController{
    public $components = array('Plupload.Plupload');
    public $helpers = array('Plupload.Plupload');
    public function add($id = null){
        $this->Plupload->setUploaderOptions(array(
            'locale' => 'ja',
            'runtimes' => 'html5',
//          'widget_url' => '/plupload/plupload/widget',
//          'url' => '/plupload/plupload/upload',
            'multipart_params' => array(
                'data[Image][model]' => 'Gallery',
                'data[Image][foreign_key]' => $id,
            )
        ));
    }
}

View

<?php echo $this->Plupload->loadWidget('jqueryui', array('height' => '550px')); ?>

The Versions

24/05 2013

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/junichi11/CakePHP-Plupload-Plugin

CakePHP Plugin for plupload

  Sources   Download

MIT

The Requires

 

03/10 2012

dev-master

9999999-dev https://github.com/junichi11/CakePHP-Plupload-Plugin

CakePHP Plugin for plupload

  Sources   Download

MIT

The Requires