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,835
  • 4
  • 35
  • 52
Tyilo
  • 28,998
  • 40
  • 113
  • 198
  • 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,921
  • 3
  • 63
  • 76