当前位置:首页 > 浏览器

浏览器

IE浏览器上传文件时本地路径变成”C:\fakepath\”的问题

canca14年前 (2012-09-25)526
在使用<input id="file_upl" type="file" />控件上传文件时,有时会需要获取文件本地路径展示给客户,这时可以通过这样的方式获取文件本地路径: document.getElementById('file_upl').value 这在IE7及以前的IE浏览器版本…