Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pause downloads button to installer #505

Open
awdev1 opened this issue Dec 11, 2024 · 8 comments
Open

Add Pause downloads button to installer #505

awdev1 opened this issue Dec 11, 2024 · 8 comments

Comments

@awdev1
Copy link

awdev1 commented Dec 11, 2024

Installer Version

v3.4.3

Description

When downloading off of the internet, I sometimes need to pause the download. However the only option is to cancel, which I do not wish to do as the process can take me hours to download a plane due to slow internet. Thanks in advance!

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

awdev_

@awdev1
Copy link
Author

awdev1 commented Dec 11, 2024

ignore #506, github made 2 issues for some reason

@wotanut
Copy link

wotanut commented Dec 16, 2024

I'm not sure pausing a download is possible with javascript, i'll look into if it is shortly.

@awdev1
Copy link
Author

awdev1 commented Dec 16, 2024 via email

@FoxtrotSierra6829
Copy link
Member

It is technically possible to implement a pause/resume function using range requests, however axios does not natively provide a solution to simply pause and resume a download. This has to be implemented manually.

@awdev1
Copy link
Author

awdev1 commented Dec 16, 2024 via email

@wotanut
Copy link

wotanut commented Dec 16, 2024

I think, looking through the docs @FoxtrotSierra6829 provided it would require some server reconfiguration before even being implemented in the installer. GitHub seems to support it but The FlyByWireSim's servers don't.
GitHub
FBW

This would require some server configuration before being possible.

@FoxtrotSierra6829
Copy link
Member

I think, looking through the docs @FoxtrotSierra6829 provided it would require some server reconfiguration before even being implemented in the installer. GitHub seems to support it but The FlyByWireSim's servers don't.

You requested URLs that are not files.
Try curl -I https://flybywirecdn.com/addons/a32nx/master/html_ui.zip and you'll see it does send the Accept-Ranges: bytes header.

@wotanut
Copy link

wotanut commented Dec 16, 2024

🤦‍♂️ My bad, I did think something was up. I can possibly look into adding support for it, but maybe sometime after Christmas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants