You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
OS file selector dropdown only has the provided acceptedTypes file types, which hides all files not of those types and prevents users from attempting to upload incorrect file types.
Actual behavior
Clicking on 'click to browse' opens the OS file selector, but any file can be selected due to the dropdown showing 'All files'.
Steps to reproduce
On Windows 7, open the file selector by clicking on the drag/upload button, note that all files are displayed and available for selection despite only specific file types are allowed. Untested on Mac or Linux.
Cool, so based on the above we may be able to set that attribute on our file input and see what happens. There are a couple file drop issues out there so in the coming weeks I might try to knock out several at once.
Expected behavior
OS file selector dropdown only has the provided acceptedTypes file types, which hides all files not of those types and prevents users from attempting to upload incorrect file types.
Actual behavior
Clicking on 'click to browse' opens the OS file selector, but any file can be selected due to the dropdown showing 'All files'.
Steps to reproduce
On Windows 7, open the file selector by clicking on the drag/upload button, note that all files are displayed and available for selection despite only specific file types are allowed. Untested on Mac or Linux.
Plunker
https://plnkr.co/edit/0PIVgL8XGonfcMm5jst5?p=preview
The text was updated successfully, but these errors were encountered: