diff --git a/app/admin/view/api/upload.js b/app/admin/view/api/upload.js index 7eb3413fb..d16ed27d9 100644 --- a/app/admin/view/api/upload.js +++ b/app/admin/view/api/upload.js @@ -87,6 +87,8 @@ define(['md5', 'notify'], function (SparkMD5, Notify, allowMime) { that.hash(files[index]).then(function (file) { that.event('upload.hash', file).request(file, done); }); + }, error: function () { + that.event('upload.error', {file: file}, file, '压缩失败'); } }); });