admin管理员组文章数量:1208155
i am using jquery file upload plugin provided at now the problem is that i am returning image paths for the matching images that i just uploaded if following format.
["upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg"]
now i cant figure out that how can i fetch this reponse. I mean usually ajax response can be fetched within success
function but i cant figure out where is similar function in the following uploader.
i am using jquery file upload plugin provided at https://github.com/blueimp/jQuery-File-Upload now the problem is that i am returning image paths for the matching images that i just uploaded if following format.
["upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg","upload\/2014-04-08-17-04-39000000_d.jpg"]
now i cant figure out that how can i fetch this reponse. I mean usually ajax response can be fetched within success
function but i cant figure out where is similar function in the following uploader.
2 Answers
Reset to default 18In fileupload.js there is a call back function done. Use this code.
done: function(e, data) {
var r = data.result;
alert(r);
},
Did you try binding: .bind('fileuploaddone', function (e, data) {/* ... */})
?
That should be the callback you are looking for.
本文标签: javascriptJquery file upload plugin how to fetch Response sent from serverStack Overflow
版权声明:本文标题:javascript - Jquery file upload plugin how to fetch Response sent from server - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738691197a2107113.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论