I am trying to create a pop-up window which will let user select a FOLDER (and not file) and once selected that the entire path of the chosen folder should come up in the text box,

The below code creates File upload window. How to modify the below code to make it FOLDER selection window?

new Ext.form.TextField({
inputType : 'file',