This code (linke to playground: http://tinyurl.com/6ed9dyv)
var label = new qx.ui.basic.Label('<input type="file" id="files" name="files[]"/>').set({width: 250, rich:true, wrap:true});
var doc = this.getRoot();
doc.setLayout(new qx.ui.layout.VBox(10));
doc.add(label);
var button1 = new qx.ui.form.Button("Test");
doc.add(button1);
button1.addListener("execute", function(e) {
var obj = document.getElementById('files');
if (obj)
alert(obj.files.length);
});
doesn't work for me. obj.files is always undefined. Strangely it does work in an application with multiple tabs when I switch to another tab and then back to the one containing this code.