Bootstrap FileInput Multi-image upload plugin source link:http://blog.csdn.net/misterwho/article/details/72886248?utm_source=itdadao& Utm_medium=referral
The bootstrap framework, the interface is quite good, the API is very rich, can be customized content to meet the large number of scenes.
Recently in a project, using it, took the time to collect some documents, organized and translated some of the content. Spare.
GitHub Address
Https://github.com/kartik-v/yii2-widget-fileinput
Official Api/demo Address:
Http://demos.krajee.com/widget-details/fileinput
Installation on YII2, easy to use
Installationcomposer require kartik-v/yii2-widget-fileinput "@dev"
Basic use
UseKartik\File\FileInput;//Non-activeform forms echo ' <label class= ' control-label ' > Pictures </label> '; Echo fileinput::widget ([ ' model ' = + $model, ' attribute ' = ' image[] ', ' options ' and ' =' multiple ' = = true]]); //Use ActiveForm's form echo $form->field ($model, ' image[] ')->widget (FileInput:: ClassName (), [ ' options ' = ' =' multiple ' = true],]);
Report:
Options Description:
2.Method Description:
1.1 Fileactionsettings Description:
Original link: http://blog.csdn.net/misterwho/article/details/72886248?utm_source=itdadao&utm_medium=referral
Bootstrap FileInput Multi-image Upload Plugin document property description