-
Notifications
You must be signed in to change notification settings - Fork 12
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
Issue with accept user input. #15
Comments
Why you didn't bind user inputs with an HTML template? |
It is same as file limitation, validator should only validate values and |
Probably, you are not right. Accept uses for avoiding unnecessary files for uploading, also it helps to user pick up the right format file from the bunch of files - and it works properly in an example above. |
You're right. Thank's @dmytrodemchenko beacuse you have noticed it. |
I do not use accept attr as a validator - the main idea to clean a folder from unnecessary files as it provided by official docs. Everything that you need to do: <input #inputRef type="file" **[accept]='acceptInput'** class="files-input" tabindex="-1" multiple (change)="onInputChange($event)"> Please let me know what do you think about this? |
@pIvan thank you a lot for your collaboration. I'll be looking forward to a new release. |
Support for native accept attribute was added. It is possible to use it as attribute on |
I guess we can close this. |
@pIvan thank you a lot for that! |
It allows to put any type of files and it seems that it doesn't work properly.
Also, when I use image/* pattern - it shows all visible files in a folder instead of https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_accept
The text was updated successfully, but these errors were encountered: