Browse Source

Revert "KERNEL-12683 feat: 文件上传支持自定义校验 , bi.file reset方法清空前一次上传的files"

This reverts commit 221e254ea1.
es6
zsmj 2 years ago
parent
commit
54bfec0760
  1. 3
      src/base/single/editor/editor.multifile.js
  2. 1
      src/base/single/input/file.js

3
src/base/single/editor/editor.multifile.js

@ -43,14 +43,12 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
});
this.file.on(BI.File.EVENT_ERROR, function () {
self.fireEvent(BI.MultifileEditor.EVENT_ERROR, arguments);
self._reset();
});
this.file.on(BI.File.EVENT_PROGRESS, function () {
self.fireEvent(BI.MultifileEditor.EVENT_PROGRESS, arguments);
});
this.file.on(BI.File.EVENT_UPLOADED, function () {
self.fireEvent(BI.MultifileEditor.EVENT_UPLOADED, arguments);
self._reset();
});
BI.createWidget({
@ -95,6 +93,7 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
},
upload: function () {
this._reset();
this.file.upload();
},

1
src/base/single/input/file.js

@ -705,7 +705,6 @@
reset: function () {
if (this.wrap) {
this.wrap.files = [];
this.wrap.attach_array = [];
this.wrap.attach_names = [];
this.wrap.attachNum = 0;

Loading…
Cancel
Save