dev-master
9999999-dev https://github.com/waldemarnt/MediaPluginMulti upload plugin
MIT
The Requires
by waldemarnt
v1.0.0
1.0.0.0Multi upload plugin
MIT
The Requires
by waldemarnt
Multi upload plugin
This is a multiupload plugin to cakephp., (*1)
install via composer: reference: waldemarnt/media, (*2)
install manual:, (*3)
copy to app/Plugin folder and run composer update comand to download WideImage, (*4)
create table, (*5)
CREATE TABLE media
(
id
int(11) NOT NULL AUTO_INCREMENT,
path
varchar(255) NOT NULL,
name
varchar(255) NOT NULL,
model_name
varchar(255) NOT NULL,
model_id
int(11) NOT NULL,
size
int(11) DEFAULT NULL,
PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;, (*6)
First you need load into your bootstrap.php file;, (*7)
CakePlugin::load('Media');, (*8)
Now you need add this parameter into your Model;, (*9)
public $actsAs = array( 'Media.Media'=>array( 'thumb_size'=>array( 'width'=>100, 'height'=>100 ) ) );
You need add public $helpers = array("Media.Media"); to your controller or app controller, to use Media plugin file upload helper., (*10)
Now in your view you need this field, (*11)
Media->file(); ?>To show uplaoded files you need in your view, (*12)
Element('Media.show'); ?>Now it's works fine :D, (*13)
Multi upload plugin
MIT
Multi upload plugin
MIT