我们可以为“文件上传控制"浏览按钮设置默认位置吗? [英] Can we set Default location for File Upload Control browse button
问题描述
我有File Upload control
,当我单击浏览按钮时,会出现一个dialog box
,我们可以在其中选择文件,如下所示:
I have File Upload control
and when i click on browse button a dialog box
appears from where we can select files as shown below:
但是每次我浏览时,它都会转到位置C:\Users\Public\Pictures\Sample Pictures\
.相反,当我单击浏览按钮时,我想要一个不同的位置,例如C:\Program Files\
.
But everytime i browse it goes to the location C:\Users\Public\Pictures\Sample Pictures\
. Instead i want a different location like C:\Program Files\
.when clicked on browse button.
这应该怎么做?
提前谢谢.. !!
推荐答案
我认为不可能实现这一目标.如所述 这里
I don't think it's possible to achieve this. As stated here
您要控制浏览开始的目录位置,而不是文件上传到的保存路径,对吗?我可能是错的,但是由于服务器永远不知道客户端计算机的文件结构,因此该控件的开发人员可能未提供该功能
You are wanting to control the directory location that the browse starts in and not the save path the file is uploaded to, correct? I could be wrong but since the server never knows the file structure of the client machine, the developers of that control probably did not provide for that functionality
这篇关于我们可以为“文件上传控制"浏览按钮设置默认位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!