Q:

Can AngularJs select only a directory, not including file name?

As the title says, can AngularJs open a dialog to allow the user to select only a directory (folder), not including file name?
I am selecting a download directory, and the user doesn't get to choose file name, in case they give the wrong extension.

[Update] Urk! If I use the standard file dialog, and type a new file name, the browser errors because the file does not exist :-(

A:

AngularJs of its own does not provide any feature up and above the native DOM api to be able to do this. If it is available in the DOM API, this would be possible. 
To answer your question: No. There is no DOM API that allows us to prompt for a dialog box that only selects directories in the visitor's file system. 

