想要获取文件路径而不是仅文件名 [英] want to get filepath instead of filename only
本文介绍了想要获取文件路径而不是仅文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在表单上使用了fileupload控件.当我从本地磁盘或任何路径中选择文件时,它仅在Mozilla中显示文件名.我想要完整路径.我不希望在我上传文件的服务器路径.我希望客户端计算机具有完整的文件路径.它在IE6中可以正常工作,但在IE8中与Mozilla中存在同样的问题.
如何获取文件路径?
谢谢
sjs
Hi,
I am using fileupload control on my form. when I select my file from local disk or from any path it showing only filename in Mozilla .I want full path. I dont want server path where I am uploading my file. I want client machines full file path. Its working fine in IE6 but in IE8 its showing same problem as there in Mozilla.
How can I get file path??
Thanks
sjs
推荐答案
在此处检查类似的讨论 [ ^ ]
hi,
这取决于浏览器的功能,您做不到.你可以做到的..
->更新您的浏览器版本.因为在我这边,我能够在IE8和Firefox中看到完整的路径.
It is depend on browser functionality, You can''t do it. you can do that is..
-> Update your browser version. Because at my side i am able to see full path in both IE8 and Firefox.
这篇关于想要获取文件路径而不是仅文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文