View Single Post
  #1  
Old 09-10-2013, 03:17 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
Saving file from server to client's PC

I have recently stumbled across the selectFileForDownload(str) function with no surprise of not finding much documentation.

What I want to do is download a file from the server to my PC using a save file dialog-esk UI.

This is what the function gives clientside for:
selectFileForDownload("/levels/graphics/images/test.png");


When I click the save button, nothing happens and the function doesn't return anything.

I haven't seen this function being used anywhere either...
And the lack of documentation doesn't help.

Is there another way to download a file from the server to a client's PC?

I want to avoid uploading it to a web server and getting the client to download it from there...

I have also tried different arguments for the function with no luck.
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote