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

[Re-Submitted] Added support for file extension filtering as well as ability to select a directory to file picker dialog #1131

Merged
merged 3 commits into from Nov 6, 2018
Merged

[Re-Submitted] Added support for file extension filtering as well as ability to select a directory to file picker dialog #1131

merged 3 commits into from Nov 6, 2018

Conversation

nickhomme
Copy link
Contributor

I've added support for the file input to have a file type filter applied as well as the ability to select directories if allowed.

Reasoning for this is to provide plugins the ability to have more complex capabilities such as looping through files in a directory or only allowing certain files to be selected.

Possible improvements would be to also allow option of multiple files to be selected.

@nickhomme
Copy link
Contributor Author

Looks like my IDE performed some auto-formatting. Let me know if you'd like me to revert those formatting changes.

@gschier
Copy link
Contributor

gschier commented Aug 23, 2018

Thanks for the PR @nickhomme! Since it's such a small PR, the formatting stuff is fine. It's easy enough to find the meaningful code changes 😄 👍

@nickhomme
Copy link
Contributor Author

@gschier
Is there something additional I need to do for the third check to run?

@gschier
Copy link
Contributor

gschier commented Sep 13, 2018

It's okay. Sometimes that last one doesn't run for some reason. Also, I haven't forgotten about this. Going to get it into the next release for sure!

Copy link
Contributor

@gschier gschier left a comment

Choose a reason for hiding this comment

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

Looks awesome! Nice work 😄

@gschier gschier merged commit 4b1db75 into Kong:develop Nov 6, 2018
@welcome
Copy link

welcome bot commented Nov 6, 2018

Congrats on merging your first pull request! 🎉🎉🎉 You're helping make Insomnia awesome! 🙌

luizmariz pushed a commit to luizmariz/insomnia that referenced this pull request Jan 22, 2020
…ability to select a directory to file picker dialog (Kong#1131)

* Added file extensions filtering as well as ability to select directories to the file input picker.

* Removed redundant code using just one type 'file' and allowing the dev to pass in array of what types they want (file/directory)

* Fixed test
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

Successfully merging this pull request may close these issues.

None yet

2 participants