3

I want to upload multiple folder( folder and its sub folder) using javascript. Now I am able to upload a single folder which contain more than one files using this code

<input style="margin-left:3%;" type="file"  class="width-75" name="docfile[]" id="docFile" onchange="getSelectedFiles(event)" webkitdirectory>

But how can I upload multiple folder at a time? Is it possible? Or what changes are made into this code to make it possible? Anybody please help me..

2 Answers 2

1

You need to add multiple at the end of the input tag like this <input type="file" multiple>

Sign up to request clarification or add additional context in comments.

Comments

0

Select multiple folders in your Finder (macOS) or File Explorer (Windows) using the Command key on mac or the Ctrl key on windows and upload that.

1 Comment

IMHO, the OPs question was about how to enable multi-folder upload in his HTML, not how to do this within his Browser or OS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.