Page 2 of 2

Re: Downloading with http.request corrupts file

Posted: Sun Aug 07, 2016 12:08 pm
by NickRock
zorg wrote:
NickRock wrote:If you mean io.open equivalent, I don't think so. There's nothing similar to io.open in the documentation
io.open's counterpart would be [wiki](File):open[/wiki]. :o:
That's good to know, thanks!

Re: Downloading with http.request corrupts file

Posted: Mon Aug 08, 2016 5:12 pm
by Tjakka5
As suggested I've made it so the counter function appends the chunk to a 'file' variable.
When the thread is finished downloading, it returns that file and from there I can either load it up directly, or use love.filesystem.write to save it in my save directory.

Works perfect. Thanks for the help!