简体   繁体   English

FileUpload asp.net

[英]FileUpload asp.net

I want to force my user to only search in a particular folder when using the fileupload control. 我想强制我的用户在使用fileupload控件时只搜索特定文件夹。 Is that possible? 那可能吗?

不,这完全取决于客户端,只要它是纯HTML,而不是ActiveX实现。

Unfortunately not. 不幸的是。 The standard web browser file upload control can't be restricted in this way. 不能以这种方式限制标准Web浏览器文件上载控件。

How do you know that folder exists? 你怎么知道该文件夹存在?

If it's a network share perhaps a better idea would be to have the webserver itself create a listing of all the files and folders at that location and let the user navigate to the appropriate file? 如果它是网络共享,或许更好的想法是让网络服务器本身创建该位置的所有文件和文件夹的列表,并让用户导航到适当的文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM