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 Studio Chat / [SOLVED] GetHTTPFileProgress File Size

Author
Message
nonom
AGK Developer
2
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Aden
Posted: 29th Dec 2019 14:52
I'm doing my own game updater with AppGameKit Studio.

What's the max file size for GetHTTPFileProgress to work with GetHTTPFile?

https://www.appgamekit.com/documentation/Reference/HTTP/GetHTTPFile.htm

Both examples are working for small files but tried a bigger one and GetHTTPFileProgress remains to zero until the end.

Thanks!

The author of this post has marked a post as an answer.

Go to answer

JasonPC
5
Years of Service
User Offline
Joined: 14th Apr 2015
Location: United Kingdom
Posted: 29th Dec 2019 14:57
I've been using it with ~2MB photos. Are you sure your code is actually using the GetHTTPFileProgress correctly? Small files could arrive before the progress reflects it (I've not checked this, but could see that happening).

What does your debugging say?
nonom
AGK Developer
2
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Aden
Posted: 29th Dec 2019 15:31 Edited at: 29th Dec 2019 18:16
Probably the best idea is to download it file to file or split the zip. I'll try.
janbo
11
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 29th Dec 2019 18:56
Never had this problem.
Maybe cause I didn't send big files, anyhow this smal and simple code is what I made back then:
nonom
AGK Developer
2
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Aden
Posted: 29th Dec 2019 19:33
Maybe sending big files is not the best idea because you need to update all of the files , and/or resume the download if crashed. I think i was wrong trying to get a first install "concept" instead an update way.

I will get a list of the files and download one by one, who I thinks will not exceed 5-10MB as max per file. then it could be helpful in the future update a single file with the same updater or add new ones.

Thanks, @janbo that's a really elegant solution , but probably my problem is not related with AGK.
Santman
9
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 30th Dec 2019 15:31
This post has been marked by the post author as the answer.
My world builder uses a launcher that downloads and updates the program, it handles a 250mb plus file no issue.....so it's not that.

Does the hosting site have a file size limit?
nonom
AGK Developer
2
Years of Service
User Offline
Joined: 12th Nov 2017
Location: Aden
Posted: 1st Jan 2020 14:33 Edited at: 1st Jan 2020 15:08
I think it's a problem from the server; but since I want to update different files, I'm going to download and verify file by file; it let's me to be more selective in every update.

Thanks for your feedback mates.

Login to post a reply

Server time is: 2020-09-19 06:44:13
Your offset time is: 2020-09-19 06:44:13