Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetHttpFile saves to appdata in tier 2 how can i change this?

Author
Message
CoreGrid
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 28th May 2017 13:32
I took the example at this page: https://www.appgamekit.com/documentation/Reference/HTTP/GetHTTPFileProgress.htm made by Paul Johnston and modified it a bit to use it for tier 2.
However when i run the code the file gets saved in the projects appdata folder. I tried using the following 2 things:
agk::SetFolder("C:\test");
agk::GetHTTPFile(http, "betafiles/Hands_On_AGK_Chapter_14_Text.pdf", "C:\test\Hands_On_AGK_Chapter_14_Text.pdf");
But both still save to the project appdata folder. I couldn't find anything, does someone know how properly set the save file location in tier 2?
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 28th May 2017 15:14
as of the last update you can use the "raw:" prefix for paths

Quote: "* Any command that takes a file path can now use an absolute path with the prefix "raw:" to allow access to files anywhere on the filesystem on all platforms, e.g. "raw:C:\MyFolder\MyFile.txt""


agk::SetFolder("raw:C:\test");
CoreGrid
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 28th May 2017 18:14
Thanks that works!

Login to post a reply

Server time is: 2024-09-30 03:33:02
Your offset time is: 2024-09-30 03:33:02