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

feat(download): add file size calculation for DownloadService #56

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

shawly
Copy link
Contributor

@shawly shawly commented Oct 18, 2022

This allows the browser to show file size and a time estimate for downloading files.
Does not work for ZipOutputStreams though since dir size doesn't match the zip file size.
Also added no-cache headers so browser won't start caching downloads.

@grimsi
Copy link
Member

grimsi commented Oct 19, 2022

Thanks a lot for your contribution!
I added some comments, maybe you can clarify a few details :)

This allows the browser to show file size and a time estimate for downloading files.
Does not work for ZipOutputStreams though since dir size doesn't match the zip file size.
Also added no-cache headers so browser won't start caching downloads.
@shawly
Copy link
Contributor Author

shawly commented Oct 19, 2022

Thanks a lot for your contribution! I added some comments, maybe you can clarify a few details :)

Happy to contribute! I really like the interface of GameyFin and since I'm a Java dev I decided to add this myself instead of opening feature requests and create more work for you. 👍

I'll probably open a few more PRs in the future! 😄

@shawly shawly requested a review from grimsi October 19, 2022 21:45
@grimsi grimsi changed the base branch from main to release-1.2.4 October 20, 2022 09:12
@grimsi grimsi merged commit e5cdd24 into gameyfin:release-1.2.4 Oct 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants