I am trying to save a music file to document directory, but i get a weird json file with a bunch of text. But when I use network.download to download to temp directory it works fine. I suspect it is bug, just wondering if it is limitation network.download. This code was tested on the latest daily builds and latest public build
local id = "690199" local downloadUrl = "https://www.newgrounds.com/audio/download/"..id network.download( downloadUrl, "GET", function ( ev ) if not ev.error then print("no error") else --error print("error") end end, nil, id..".wav", system.DocumentsDirectory )