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

Check the blob size instead of the progress reports #3249

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

pschichtel
Copy link
Contributor

Fixes #3243

I just had the epiphany to just simply check the size of the blob which carries the downloaded content, since that has already been decompressed by the browser.

@pschichtel
Copy link
Contributor Author

pschichtel commented Feb 27, 2024

I don't think we can access the blob before the ready state is DONE, so the progress bar will remain slightly off in firefox.

update: tested it, yes, response is null before DONE state.

@pschichtel
Copy link
Contributor Author

Meh, so the dependency vulnerability check fails, but I definitely haven't touched any dependencies. Maybe this rebase helps?

Copy link
Collaborator

@cesnietor cesnietor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes so much sense.
Thanks for figuring it out @pschichtel.
I've tested it in Chrome, Firefox and Safari. For complete downloads as well as incomplete ones.
All works as expected.

@cesnietor cesnietor merged commit 0df9487 into minio:master Feb 29, 2024
29 checks passed
@cesnietor cesnietor mentioned this pull request Mar 14, 2024
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.

"Error: Unexpected response, download incomplete." in Firefox
4 participants