1

I've input with type="file", on clicking on button the file popup has been opening it with default folder. like C:/USERS/XYZ/Downloads

But my requirement is, I want to open file popup with specified path(whatever I'll mentioned path like D:/Images/Stuff). I googled a lot & don't having any luck on this.

Is there any way to open file popup with specified folder/path?

JsFiddle

Any help/pointers would appreciate, Thanks

6
  • 1
    You can't, the path is user's choice.
    – Teemu
    Apr 6, 2015 at 8:16
  • @Teemu is there any alternative to do this? Apr 6, 2015 at 9:21
  • I'm not sure, but a browser extension/add-on/plug-in might be capable of doing this.
    – Teemu
    Apr 6, 2015 at 9:24
  • @Teemu but as per my requirement, it should be work on cross browser like IE9, FF, chrome, etc.. so going for extension would not be a great idea. Apr 6, 2015 at 9:28
  • 1
    Yes, I can understand that, but the fact is, that there's no way for a web-page to access the path.
    – Teemu
    Apr 6, 2015 at 9:30

1 Answer 1

0

You cannot set the value. Because the html is not device specific. Meaning it can be seen on any browser of any machine. Please read this Set default value for a input file form

3
  • My question is, could i set path to which i should open file dialog..is it possible? Apr 6, 2015 at 9:00
  • @ThiefMaster is there any alternative way to do this? Apr 6, 2015 at 9:30
  • 3
    No. And I believe that's a good thing. How would any website know where I store the files I want to upload? Apr 6, 2015 at 10:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.