Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Re-Submitted] Added support for file extension filtering as well as ability to select a directory to file picker dialog #1131
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.
…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