如何通过文件上传器获取本地服务器路径 [英] how to get local server path by file uploader
本文介绍了如何通过文件上传器获取本地服务器路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我有文件上传器控件,我希望通过它来显示本地服务器文件路径。
我的WebApplication在Intranet架构中运行。
喜欢:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ b我怎样才能得到这个?????
解决方案
这里你去
服务器。在MapPath(FileUpload1.FileName);
hello
I have file uploader control by which I want local server File path to display.
My WebApplication Run In Intranet Architecture.
like : \\server\Autocad\Drawing\xyz.dwg
How can i get this one ?????
解决方案
Here you go
Server.MapPath(FileUpload1.FileName);
这篇关于如何通过文件上传器获取本地服务器路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文