How to open html file dialog with specified path f

2019-08-15 22:22发布

This question already has an answer here:

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

1条回答
Summer. ? 凉城
2楼-- · 2019-08-15 22:54

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

查看更多
登录 后发表回答