Registry / web-framework / kartik-v-yii2-widget-fileinput

kartik-v-yii2-widget-fileinput

JSON →
library1.1.1phppackagistunverified

An enhanced FileInput widget for Bootstrap 3.x, 4.x & 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

composer require kartik-v/yii2-widget-fileinput
INSTALL
IMPORT
SIG · KARTIK-V-YII2-WIDG
K
kartik-v-yii2-widget-fileinput
web-frameworkphpv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FileInput
use kartik\file\FileInput;

Render a file input widget with preview and multiple selection support.

use kartik\file\FileInput; echo FileInput::widget([ 'name' => 'attachment', 'options' => ['accept' => 'image/*'], 'pluginOptions' => ['showPreview' => true], ]);
Debug
Known issues
gotchaRequires Bootstrap CSS/JS to be loaded for proper styling
fix
Include Bootstrap assets in your view or layout
affects: *
Upgrade
Version history
1.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
kartik-v-yii2-widget-fileinput — pip install kartik-v-yii2-widget-fileinput · libregistry