2017 © Pedro Peláez
 

cakephp-plugin cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

image

alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  • Friday, July 6, 2018
  • by alaxos
  • Repository
  • 3 Watchers
  • 7 Stars
  • 3,893 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 8 Open issues
  • 7 Versions
  • 18 % Grown

The README.md

cakephp3-blueimp-upload

CakePHP3 plugin allowing to easily use the blueimp jQuery-File-Upload, (*1)

General Features

  • A helper allows to create an upload button with a progess bar
  • A component manage the uploads requests (may be in multiple chunks)
  • Each upload is stored into a datatable with the file infos
  • Once the upload is over, do what you want in your application with the record and the uploaded file

Installation

Adding the plugin

You can easily install this plugin using composer as follows:, (*2)

composer require alaxos/cakephp3-blueimp-upload

Enabling the plugin

After adding the plugin remember to load it in your config/bootstrap.php file. The Alaxos plugin must be loaded as well., (*3)

Plugin::load('Alaxos', ['bootstrap' => true]);
Plugin::load('CakephpBlueimpUpload');

Using the plugin

Template

echo $this->BlueimpUpload->chunked('picture_upload', [
                                   'upload_url' => Router::url(['controller' => 'Posts', 'action' => 'upload_picture', $post->id])
                                ]);

Check for options in the chunked() method., (*4)

Controller


public $components = ['CakephpBlueimpUpload.Uploader']; public $helpers = ['CakephpBlueimpUpload.BlueimpUpload']; public function upload_picture($id = null) { ... $upload = $this->Uploader->upload($upload_folder, ['accepted_mimetypes' => ['image/jpeg', 'image/tiff', 'image/png']]); if($upload !== false) { if($upload->complete) { /* * The upload is over. * Do what you want with the $upload entity */ } } ... }

The Versions

06/07 2018

dev-cakephp-3.6

dev-cakephp-3.6 https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

07/05 2018

dev-cakephp-3.5

dev-cakephp-3.5 https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

07/05 2018

3.5.0

3.5.0.0 https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

22/05 2017

dev-master

9999999-dev https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

22/05 2017

dev-dev

dev-dev https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

22/05 2017

1.1.0

1.1.0.0 https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload

20/11 2015

1.0.0

1.0.0.0 https://github.com/alaxos/cakephp3-blueimp-upload

CakePHP 3 plugin allowing to easily use the blueimp jQuery-File-Upload

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp upload libraries blueimp jquery-file-upload