Hi i’m triying to use Editable::INPUT_FILE from http://demos.krajee.com/editable but i can’t find information of how to configure; i read http://demos.krajee.com/widget-details/fileinput and try to configure like that, but it don’t work, never upload a file.
I have a grid working like http://demos.krajee.com/grid-demo but need to upload a file
Hope You can help
Best Regards
[
'class' => 'kartik\grid\EditableColumn',
'attribute' => 'doctos',
'pageSummary' => true,
'readonly' => function ($model, $key, $index, $widget) {
return (!$model->status);
},
'editableOptions' => function ($model, $key, $index, $widget) {
return [
'header' => 'Document',
'size' => 'md', // http://demos.krajee.com/popover-x#settings
'inputType' => \kartik\editable\Editable::INPUT_FILE, // http://demos.krajee.com/editable
'options'=>[
'options' => [
'pluginOptions' => [
'name' => 'attachments',
'options' => ['multiple' => true],
'pluginOptions' => ['previewFileType' => 'any'],
'uploadUrl' => '/archivo',
]
]
],
];
}
],