fileupload中的浏览器可比性问题通过jquery控制 [英] browser comparability issue in fileupload contrl through jquery
本文介绍了fileupload中的浏览器可比性问题通过jquery控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
fileupload控制代码
< asp:FileUpload ID =fileUploadImagerunat =serverToolTip =上传你的图片/>
var filename = $(#fileUploadImage)。val();
在firefox上返回filename = tiger.png这是文件的实际名称
在chrome返回filename = C:akepath iger.png这是错误的
所以Plz帮我解决这个问题
Thanx Sheriff
解决方案
(#fileUploadImage)。val();
在firefox上返回filename = tiger.png这是文件的实际名称
在chrome返回filename = C:akepath iger.png哪个错了
所以Plz帮我解决了这个问题
Thanx Sheriff
这实际上是设计(和很酷的功能)。
查看关于fakepath的信息 - http://davidwalsh.name/fakepath [ ^ 一>]。
fileupload control code at design page
<asp:FileUpload ID="fileUploadImage" runat="server" ToolTip="Upload your image" />
var filename = $("#fileUploadImage").val();
At firefox return filename =tiger.png which is actual name of file
At chrome return filename =C:akepath iger.png which is wrong
So Plz help me to resolve this issue
Thanx Sheriff
解决方案
("#fileUploadImage").val();
At firefox return filename =tiger.png which is actual name of file
At chrome return filename =C:akepath iger.png which is wrong
So Plz help me to resolve this issue
Thanx Sheriff
This is actually be design (and a cool feature).
Check this out about fakepath - http://davidwalsh.name/fakepath[^].
这篇关于fileupload中的浏览器可比性问题通过jquery控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文