1

If I insert <input type="file" name="files" webkitdirectory> in a html file, chrome will allow you to select directories, however not files.

If I then remove the webkitdirectory (<input type="file" name="files">) then it will only let you choose files.

How do I allow it to choose both/either files and/or directories?

gevorg
  • 4,535
  • 4
  • 34
  • 51
Tyilo
  • 27,548
  • 34
  • 107
  • 190
  • I'm not familiar with webkitdirectory, but as far as I am aware there isn't a single native dialog at least in Windows for selecting both a directory and/or a file. So I would suggest you implement both tags in your UI and give the user the option to either select a directory or a file or both then. – alexteg Nov 07 '11 at 19:52

1 Answers1

2

This is a bug I filed a while back.

ebidel
  • 23,567
  • 3
  • 60
  • 76