PostedFile.FileName不返回完整路径吗? [英] PostedFile.FileName not returning full path?

查看:59
本文介绍了PostedFile.FileName不返回完整路径吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件上传控件,如下所示:

i have a file upload control as below:

<

 

 

输入 id =" txtLocalResource" 样式 =&; :100%"" 类型 =文件" size ="16" 名称 =" txtLocalResource" runat =服务器">

input id="txtLocalResource" style="width:100%" type="file" size="16" name="txtLocalResource" runat="server">

在我的代码中,当我查看txtLocalResource.PostedFile.FileName时会返回

in my code when i look at txtLocalResource.PostedFile.FileName it returns

只有文件名,其余路径丢失了吗?我正在使用ie8和vs2010.

only the filename, the rest of the path is missing? i am using ie8 and vs2010.

该网站使用SSL(即URL以https://开头)-我想知道这是否是问题的原因吗?

the site uses SSL (ie. the URL starts with https://) - i wonder if this is the reason for the problem???

任何建议表示赞赏.

非常感谢.

推荐答案

自2002年以来,几乎不可能从操作系统中获得类似外部设备的实际路径的信息互联网上的计算机.

Since 2002 it is almost impossible to get things back from an OS like the actual path of an external computer on Internet.

微软,谷歌,甲骨文,苹果,Adobe,Sun等公司已经投入了数十亿美元来防止这种情况的发生.

Microsoft, Google, Oracle, Apple, Adobe, Sun and more have invested billions of dollars to prevent that.

您希望什么来到这里?


这篇关于PostedFile.FileName不返回完整路径吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆