0

Allowing a user to upload a single file is very easy using the <input type="file"/> tag.

How can I let a user select an entire folder so that it's contents can be uploaded. I imagine that using a Java applet would work, but I am hoping there is a simpler solution.

Ankur
  • 48,849
  • 108
  • 240
  • 311

2 Answers2

0

If you are using HTML5 you can use drag and drop upload to select multiple files from the folder. ( http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload )

Jayantha Lal Sirisena
  • 20,846
  • 10
  • 70
  • 92
0

There is no such support in browser - mostly for security reasons. If you let a user select a folder and the browser could scan through all files, you could potentially scan through their whole hard drive.

Oded
  • 477,625
  • 97
  • 867
  • 998