View Single Post
  #71  
Old 01-18-2010, 06:41 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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);

Reply With Quote