HTMLUI

h=new HTMLUI{
    content: [
    "div",["input",{type:"file",name:"file",multiple:true}]
    ],left:10, top:10, width:300, height:300,
};
while(!h.hasFile("file")) update();
let c=waitFor( h.getFile("file") );
print(c.name, c.dataURL);