FileUpload.PostedFile.FileName在Firefox中不起作用 [英] FileUpload.PostedFile.FileName not working in firefox

查看:58
本文介绍了FileUpload.PostedFile.FileName在Firefox中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



FileUpload.PostedFile.FileName可在IE中使用,但不能在Firefox中使用.例如,在IE中,我们得到"c:\ test.txt",而在Firefox中,我们得到"test.txt",而不是完整路径.请帮助我.

问候
Sathish K.

Hi,

FileUpload.PostedFile.FileName working in IE but not working in firefox. For example in IE we getting "c:\test.txt" but in firefox we getting "test.txt" not the full path. Kindly help me.

Regards
Sathish K.

推荐答案

为您修复链接

fileupload.postedfile.filename不适用于Firefox [ ^ ]
Path.GetFileName方法 [ ^ ]

FileUpload.PostedFile.Filename包括所有客户端路径信息,但仅在IE中 [ Firefox和IE之间的ASP.NET文件上传差异 [ ^ ]
Fix links for you

fileupload.postedfile.filename not working with firefox[^]
Path.GetFileName Method [^]

FileUpload.PostedFile.Filename includes all the client Path info, but only in IE[^](Read the 2nd comment by Shawson)
ASP.NET File Upload differences between Firefox and IE[^]


这篇关于FileUpload.PostedFile.FileName在Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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