Passing the error message to jQuery File Upload

前端 未结 3 1379
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 14:44

I\'ve integrated JQuery File Upload into a Java Spring application. The returned JSON is generated from an array of Picture, where Picture contains \"name\", \"size\", \"url\",

3条回答
  •  孤街浪徒
    2021-02-02 15:09

    done: function (e, data){
        var files = data.jqXHR.responseJSON.files;
        console.log(files);
    }),
    

    Each "files" object can have an error var you can work with, like user stivlo said.

提交回复
热议问题