|
|
|
@ -228,7 +228,7 @@ const sendFile = (toString => {
|
|
|
|
|
attachO.filename = handler.file.fileName; |
|
|
|
|
if (handler.maxLength === 1) { |
|
|
|
|
handler.attach_array[0] = attachO; |
|
|
|
|
// handler.attach_array.push(attachO);
|
|
|
|
|
// handler.attach_array.push(attachO);
|
|
|
|
|
} else { |
|
|
|
|
handler.attach_array[current] = attachO; |
|
|
|
|
} |
|
|
|
@ -585,8 +585,8 @@ export class File extends Widget {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_events(wrap) { |
|
|
|
|
const { maxLength, errorText } = this.options; |
|
|
|
|
const callback = () => { |
|
|
|
|
const { maxLength, errorText } = this.options; |
|
|
|
|
event.del(wrap.dom.input, "change", callback); |
|
|
|
|
const input = wrap.dom.input.cloneNode(true); |
|
|
|
|
const files = F(wrap.dom.input); |
|
|
|
|