This commit is contained in:
yumoqing 2026-03-05 15:14:59 +08:00
parent a33b8d1ab8
commit ddf4ea427b

View File

@ -407,7 +407,7 @@ bricks.UiFile = class extends bricks.VBox {
} }
handleFileSelect(event){ handleFileSelect(event){
var files = []; var files = [];
event.target.files.forEach(f => { Array.from(event.target.files).forEach(f => {
if (! this.accept || f.type.startsWith(this.accept)){ if (! this.accept || f.type.startsWith(this.accept)){
files.push(f); files.push(f);
} }