获取完整路径文件上传控制 [英] get full path file upload control

查看:77
本文介绍了获取完整路径文件上传控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要使用文件上传控件获取文件的完整路径.如果无法通过文件上传进行操作,请给我一种替代的方式,付费API除外.

问候

解决方案

引用该线程
http://stackoverflow.com/questions/1130560/get-完整文件路径与文件上传控制 [ http://weblogs. asp.net/ashicmahtab/archive/2009/05/20/fileupload-control-doesn-t-give-full-path-help.aspx [ 字符串路径= Server.MapPath(FileUpload1.FileName);


("FileUpload1"是aspx中文件上传控件的ID)


Hi
I need to get full path of the file using file upload control. if it is not possible through file upload then please give me an alternative way, except paid API''s.

Regards

Refer this thread
http://stackoverflow.com/questions/1130560/get-full-path-of-a-file-with-fileupload-control[^]
and this article
http://weblogs.asp.net/ashicmahtab/archive/2009/05/20/fileupload-control-doesn-t-give-full-path-help.aspx[^]


Use file upload control.
And in code behind....

string path = Server.MapPath(FileUpload1.FileName);


("FileUpload1" is the id of file upload control in aspx)


这篇关于获取完整路径文件上传控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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