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

Restriction on file extension doesn't work #2

Open
patriciainimov opened this issue Oct 14, 2020 · 2 comments
Open

Restriction on file extension doesn't work #2

patriciainimov opened this issue Oct 14, 2020 · 2 comments

Comments

@patriciainimov
Copy link

Thanks a lot for this plugin. The only problem is that the restriction for file extension does not work.. For instance, when i put ['.pdf'] as value for ext, the selector still accept images and all kind of files. Am i doing this wrong? How can i solve this?

@patriciainimov
Copy link
Author

I solved the issue. It was due to the fact that i added restrictions on the extension using the '.', like this: ['.pdf'], this beacause i saw it in the doc on the readme file. I should be like this: ['pdf']. Maybe you should consider updating the readme file.

@abritopach
Copy link

The option

let ext = ['*']; // Allow any file type.

This does not work either. I have fixed it in the PR: #4

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