View Single Post
  #1  
Old 03-07-2011, 10:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by ffcmike View Post
I mean "requesttext("folder", "PERSONAL");, selectFileForUpload();" which is used for players being able to upload graphics in game.
All that's happening is that once the file is selected the window is disappearing and that's the last of it, there is no onFilesUploaded().

I actually noticed this as long ago as V6 becoming a beta test, just thought there was some deliberate reason for it.
Quote:
Originally Posted by Stefan View Post
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