I've fixed the file upload, scripts now need to call uploadfile(filename) to actually upload the file (they might like to do other things with the filename) (setting FileSelector_Window.requestscript to make sure it's us who requested it):
PHP Code:
function onMenuItemUploadFile() {
FileSelector_Window.requestscript = this.name;
selectFileForUpload();
}
function onSelectedFileForUpload(fullfilename) {
if (FileSelector_Window.requestscript==this.name)
uploadfile(fullfilename);
}