问题描述
- IE 8中jquery file upload 上传图片没反应
-
jquery file upload 组件在chrome中好使 在IE中愣是没反应,前台的请求发送不到后台Controller中后台SpringMVC 接受请求如下
@RequestMapping(value = "/fileupload", method = RequestMethod.POST)
public @ResponseBody
HBaseFileInfo upload(HttpServletRequest request, HttpServletResponse response) throws IOException {……}
前台
$('#fileupload').fileupload({
url: url,
autoUpload: true,
dataType: 'json',
acceptFileTypes: /(.|/)(gif|jpe?g|png)$/,
done: function (e, data) {
$.each(data.files, function (index, file) {
$("#newfiles").append(file.preview);
});
$('#progress .bar').css('width','0%');
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css(
'width',
progress + '%'
);
}
});搞了一天,都要搞死了。。。有人遇到过类似问题不
解决方案
遇到了,正在寻求答案
解决方案二:
楼主解决了么?
也遇到这个问题