Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load CSV #196

Open
leocharrua opened this issue Jul 8, 2024 · 0 comments
Open

Load CSV #196

leocharrua opened this issue Jul 8, 2024 · 0 comments

Comments

@leocharrua
Copy link

leocharrua commented Jul 8, 2024

I have a Yii2 App, with this code:

<?= $form->field($model, 'archivo_entrada_file')->widget(FileInput::class, [            
            'pluginOptions'=>[
                'fileActionSettings' => [
                    'showDrag' => false,
                ],
                'initialPreviewShowDelete' => false,
                'overwriteInitial' => true,
                'allowedFileExtensions'=>['xlsx','xls','csv'],
                'dropZoneEnabled' => true,
                'showUpload' => false,
                'removeClass' => 'btn btn-danger',
                'showCancel' => false,
                'showMove' => false,
                'showCaption' => false,
                'browseLabel' =>  Yii::t('app','Seleccionar Archivo'),
            ]
    ]); ?>

The widget works ok with "xls" and "xlsx" files, but when I try to load a "csv" file, after de file is loaded, the windows "save as" dialog appears. I don't have any in the code for that happening.

Can you help me?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant