ID:1661788
 
(See the best response by Nadrew.)
Problem description:
I need a proc to upload files (text savefiles) from client to server. This is for admin-only button so i don't care about security issues.

Was looking for it in help, but the only thing i found was:
client.Import(Query)
When there are query parameters, these may be used to import a file from some alternate source. Currently this is not supported.


Is there a way to use client.Import for this?
Best response
mob/verb/Upload(F as file)
if(F)
fcopy(F,"uploads/[usr.ckey]/[F]")


That SHOULD work, but it's been a while since I messed with 'as file'. If it doesn't I'll fire up a test environment and get what you need :)