jquery之ajaxfileupload异步跨域上传

qiqundelang qiqundelang 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我的问题是:文件能正常上传,但是前台拿不到文件上传的路径?总是进入ERROR
url:'http://192.168.1.67:8080/upload/fileConfig.do?method=upload', secureuri:false,
data:{'uploadObj':$('#uploadObj').vaL(),'previewObj':$('#previewObj').val(),'sizeLimit':$('#sizeLimit').val(),'allowedType':$('#allowedType').val(),'uploadType':$('#uploadType').val()},
fileElementId:'qqfile',//input框的ID
dataType: 'json',//返回数据类型
success: function (data, status){//上传成功
//从data中获取数据,进行处理
alert("11111111");
},error: function (data, status, e){
alert("333333");
alert(e);
}
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
qiqundelang
Ajax 52,778 成员 25,334 内容