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

"Accept" attribute in the generated <input type="file"> #12

Open
germanger opened this issue Apr 13, 2017 · 1 comment
Open

"Accept" attribute in the generated <input type="file"> #12

germanger opened this issue Apr 13, 2017 · 1 comment

Comments

@germanger
Copy link

Hello,

Thanks for this directive!

Have you considered adding accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" to the directive template?

  template: '<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />',

This way only ".xlsx" files will be listed in the file dialog

@staminna
Copy link

staminna commented Apr 18, 2017

Don't know how to pass this file from input to the dialog to the angular screen. I am using meanjs.org

I added the input tag before and after

<js-xlsx onread="read" onerror="error"></js-xlsx>

in the .html view template, but nothing happened.

The directive is being loaded correctly though.

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

2 participants