Replies: 1 comment
-
Actually, despite it being a non-standard property, webkitdirectory has a quite good support across major browsers (around 95%). It won't work on IE 11, but every other browser has been supporting it for many years. Also, I've recently encountered a package: https://www.npmjs.com/package/browser-fs-access To sum up, we can easily implement a separate useDirectoryPicker hook that will be exported through the main file src/index.tsx just like existing useFilePicker. My question is, which props should useDirectoryPicker receive? Do You have any ideas? |
Beta Was this translation helpful? Give feedback.
-
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory
We would implement it as useDirectoryPicker
It won't work on all browsers
Your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions