lobatt / gaephotos

Automatically exported from code.google.com/p/gaephotos
0 stars 0 forks source link

Firefox24环境中上传图片永远保持0%状态 #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
发现在Firefox24环境中上传图片永远保持0%状态的情况。

使用控制台监视,发现错误
[22:56:21.976] TypeError: Cannot convert string to ByteString because the 
character at index 15 has value 28779 which is greater than 255. @ 
http://绑定的域名/admin/upload/:270 

在最新版chrome中没有此问题。

求解决

Original issue reported on code.google.com by guangjin...@gmail.com on 25 Sep 2013 at 2:59

GoogleCodeExporter commented 8 years ago
Content-Disposition方法不是标准的,在最新的浏览器中均会报错
Uncaught SyntaxError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 
'{"album_name":"test","file_name":"1a1c9916fdfaaf51f5e2079d8c5494eef01f7a92.jpg"
}' is not a valid HTTP header field value. 

Original comment by re...@kindle.rexdf.org on 13 Oct 2013 at 4:57

GoogleCodeExporter commented 8 years ago
是对,以前用chrome和firefox都可以上传图片,但后来两个浏览�
��都不可以了,跟踪发现出现的问题为Uncaught SyntaxError: Failed 
to execute 'setRequestHeader' on 
'XMLHttpRequest':,的确新版本的chrome和firefox都不支持了。没有��
�法,我只能使用旧版本firefox才能上传图片。
欢迎大家交流,我的网站www.diahou.com

Original comment by koo.ba...@gmail.com on 10 Feb 2014 at 1:57