Easy way to get the input element inside the Upload component? #3697
Unanswered
VictorNorman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We found a solution: in the
the One weird thing though: that code is called twice . (We tried using Anyone know why the code is called twice? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We need to allow the user to select directories, not files, on the client side. The only thing that has to be done is add the "webkitdirectory" attribute to the tag that is used in the Upload component. I was hoping that one could use a useRef() hook easily to get a handle on the input element and then set the attribute on the element. Is there an easy way to do this?
Beta Was this translation helpful? Give feedback.
All reactions