S
S
Shakir Darion2019-08-02 19:32:31
React
Shakir Darion, 2019-08-02 19:32:31

How to make a Select Directory with React?

I need to upload all files from a folder to the server. I'm trying to implement a directory select box rather than a file select box.
The normal way is like: It didn't work for me and showed a file selection window. But when I created an empty regular HTML file with this input tag it worked fine. Does anyone know how to implement the solution with React?
<input type={"file"} webkitdirectory directory/>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-08-02
@shakiriker

try
https://github.com/facebook/react/issues/3468#issu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question