AnantLabs / xheditor

Automatically exported from code.google.com/p/xheditor
GNU Lesser General Public License v3.0
0 stars 0 forks source link

开启HTML5以后上传的文件名称 是否不自动编码 #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
关闭HTML5以后 传统上传方式中文附件名称没有问题
开启HTML5以后用IE 传统方式上传获取中文有问题
HTML5方式上传 FILENAME=""里的内容也是未经过编码方式的

Original issue reported on code.google.com by zhenjiaW...@gmail.com on 23 Sep 2010 at 8:28

GoogleCodeExporter commented 9 years ago
自己解决了 希望你们也更新下
xhr.setRequestHeader('Content-Disposition', 'attachment; name="'+inputname+'"; 
filename="'+fromfile.fileName)+'"');

var fname=encodeURIComponent(fromfile.fileName)
xhr.setRequestHeader('Content-Disposition', 'attachment; name="'+inputname+'"; 
filename="'+fname+'"');

Original comment by zhenjiaW...@gmail.com on 23 Sep 2010 at 8:40

GoogleCodeExporter commented 9 years ago
应该不会啊,如果是IE绝对不会走HTML5的那个流程,IE根本就��
�支持HTML5上传。

Original comment by yanis.w...@gmail.com on 27 Sep 2010 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by yanis.w...@gmail.com on 19 Dec 2010 at 6:24