Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

File attachments does not restrict Windows 7 file selector window according to file types #594

Closed
Blackbaud-JeffDye opened this issue Apr 17, 2017 · 3 comments

Comments

@Blackbaud-JeffDye
Copy link
Contributor

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

@Blackbaud-BobbyEarl
Copy link

http://stackoverflow.com/questions/181214/file-input-accept-attribute-is-it-useful

@Blackbaud-PatrickOFriel
Copy link
Contributor

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.

@Blackbaud-PatrickOFriel
Copy link
Contributor

In 2.0.0-beta.23

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

No branches or pull requests

3 participants