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

Improve the error message with corrupted zip. #202

Merged
merged 1 commit into from
Feb 19, 2015

Conversation

dduponchel
Copy link
Collaborator

Check if the content is a truncated zip or complete garbage.

A "LOCAL_FILE_HEADER" is not required at the beginning (auto extractible zip
for example) but it can give a good hint. If an ajax request was used without
responseType, we will also get unreadable data.

Fix #182.

Check if the content is a truncated zip or complete garbage.

A "LOCAL_FILE_HEADER" is not required at the beginning (auto extractible zip
for example) but it can give a good hint. If an ajax request was used without
responseType, we will also get unreadable data.

Fix Stuk#182.
Stuk added a commit that referenced this pull request Feb 19, 2015
Improve the error message with corrupted zip.
@Stuk Stuk merged commit bcbfe4a into Stuk:master Feb 19, 2015
@dduponchel dduponchel mentioned this pull request Mar 10, 2015
@dduponchel dduponchel deleted the feature-error-message branch March 24, 2016 22:15
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.

Throw a more informative error if the file does not start with 0x50 0x4B 0x03 0x04
2 participants