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

feat(FileUploaderDropContainer): validate filetypes from OS file picker #6868

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Sep 21, 2020

Closes #6864

This PR validates file types when using the native OS file picker for the scenario where the user deliberate selects the option to choose all file types rather than remaining on the default OS file picker behavior of only allowing supported file types (see screenshot in ticket thread for more context). This PR also updates the demos to show examples of file type validation

Changelog

New

  • validate file types for native OS file picker

Changed

  • update component demos

Testing / Reviewing

Using the native OS file picker, select the option to pick all file types (rather than keeping the default option of only allowing supported file types) and select an invalid file. The demo should mark the file as invalid

@netlify
Copy link

netlify bot commented Sep 21, 2020

Deploy preview for carbon-elements ready!

Built with commit e2c7c1c

https://deploy-preview-6868--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 21, 2020

Deploy preview for carbon-components-react ready!

Built with commit e2c7c1c

https://deploy-preview-6868--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected 👍 ✅

@kodiakhq kodiakhq bot merged commit d7ddb44 into carbon-design-system:master Sep 22, 2020
@emyarod emyarod deleted the 6864-validate-filetypes-in-native-os-file-selector branch September 23, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept prop is not working in fileUploader component on windows [bug]
3 participants