开发者

Asp.net file dialog set default folder

开发者 https://www.devze.com 2023-01-17 04:03 出处:网络
Is there any way to do this? I thought I\'d find hundreds of results on google for this but not really finding anything. I want to set it to a location either on the web server or on a mapped networke

Is there any way to do this? I thought I'd find hundreds of results on google for this but not really finding anything. I want to set it to a location either on the web server or on a mapped networked drive somewhere.

开发者_如何学JAVA

I'm talking about with <input type="file" ... /> to clarify.


You cannot. This runs on the client, and for security reasons you can't interfere with the client's filesystem through Javascript.

It is however possible using a flash or Silverlight plugin, as the user can allow access from within these applications to the local filesystem. It would cause alot more code though.

0

精彩评论

暂无评论...
验证码 换一张
取 消