![]() |
Uploadfile();?
Does this function work serverside?
I have a system in which you can upload files to a webserver then on the server it gets all the files by doing requesturl on a php script. It then has a for loop which gets all the files and is supposed to upload them. It just returns: Script: Function uploadfile not found at line 15 in script of UploadSystem. Any idea's? Edit: I have done some research. My question is now: Is it possible to upload a file from a URL to a GServer? I have tried PHP Code:
|
You can either let the user upload a file with selectfileforupload() (local files) or in your case you call requesturlasgamefile() on server side.
|
To clarify what Stefan said: no, and even if it did exist serverside, that's not how it's used. You're going to need to either use requesturlasgamefile, as Stefan recommended, or load the file into a variable via cURL or requestHTTP and use saveString to some folder that is in folder config. Look at my graphics uploader in the code gallery for an example.
|
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:
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. |
Well now I'm having an issue saving the string to a file..
It worked before but now it has stopped working o.o Here is the part that is problematic. PHP Code:
And yes the control NPC has rw rights. |
Quote:
PHP Code:
|
Now the first file will save the strings but then the rest of the files the file.fulldata returns as null o_o
|
@unknown I have tried to debug it.
No need to neg rep me, a reply would of done the job ;) |
All times are GMT +2. The time now is 04:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.