Am implementing the 2amigos file uploader it only displays the interface but does not show or upload any file
I have tried this:
<?= FileUploadUI::widget([
'model' => $evidence,
'attribute' => 'path',
'url' => ['media/upload', 'id' => $evidence],
'gallery' => false,
'fieldOptions' => [
'accept' => 'image/*'
],
'clientOptions' => [
'maxFileSize' => 2000000
],
// ...
'clientEvents' => [
'fileuploaddone' => 'function(e, data) {
console.log(e);
console.log(data);
}',
'fileuploadfail' => 'function(e, data) {
console.log(e);
console.log(data);
}',
],
]);
?>