Thread: Uploadfile();?
View Single Post
  #4  
Old 04-07-2012, 01:36 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
I think I'll go with requesturlasgamefile();
I'm not on my PC atm but I take it that it works something like this?
PHP Code:
  temp.file requesturlasgamefile("http://blahblah/something/content.png");
  
temp.file.savestring("uploads/"@temp.file0); 
And is there any function in GS2 similar to PHP like move(); or move_uploaded_file?

The uploading from the webserver works, but for some strange reason when I write /find filename.nw it can't find it, and YES I have added level uploads/*.nw to the serveroptions.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 04-07-2012 at 02:41 PM..
Reply With Quote