Hi
I am playing around with network.download, trying to understand how it works. I have the following in a main.lua file:
network.download(
“http://www.davidpowell.ca/appFolder/stable_of_questions.json”,
“GET”,
networkListener,
params,
“stable_of_questions.json”,
system.DocumentsDirectory
)
network.download(
“http://www.davidpowell.ca/images/me2.jpg”,
“GET”,
networkListener2,
params,
“me2.jpg”,
system.DocumentsDirectory
)
When I run this code, the file “me.2” gets downloaded to the Documents directory (I can see it in the Sandbox), but the json file does not. I have no idea why. Can anyone enlighten me? (Yes, the paths are correct)
thanks.