Skip to content

fix: Modified to accept mime type encountered on Windows#1439

Merged
davidgamez merged 2 commits intomasterfrom
issue/1404/zip_error_on_windows
May 16, 2023
Merged

fix: Modified to accept mime type encountered on Windows#1439
davidgamez merged 2 commits intomasterfrom
issue/1404/zip_error_on_windows

Conversation

@jcpitre
Copy link
Copy Markdown
Contributor

@jcpitre jcpitre commented May 15, 2023

Fixes #1404 On Windows browsers the mime-type of a zip file is application/x-zip-compressed, and we were just allowing mime-type application/zip. Modified to allow the application/x-zip-compressed

Please make sure these boxes are checked before submitting your pull request - thanks!

A note about how I tested this PR:

@welcome
Copy link
Copy Markdown

welcome bot commented May 15, 2023

Thanks for opening this pull request! You're awesome. We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of titles with semantic prefixes:

  • fix: Bug with ssl network connections + Java module permissions.
  • `feat: Initial support for multiple @PrimaryKey annotations.
  • docs: update RELEASE.md with new process
    To get this PR to the finish line, please do the following:
  • Read our Contribution Guidelines
  • Follow Google Java style coding standards
  • Include tests when adding/changing behavior
  • Include screenshots

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 15, 2023

CLA assistant check
All committers have signed the CLA.

@jcpitre jcpitre force-pushed the issue/1404/zip_error_on_windows branch from e3677d2 to c52b60a Compare May 15, 2023 20:33
@jcpitre jcpitre requested a review from davidgamez May 15, 2023 20:49
Copy link
Copy Markdown
Member

@davidgamez davidgamez left a comment

Choose a reason for hiding this comment

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

LGTM

@davidgamez davidgamez merged commit 0fb7e8e into master May 16, 2023
@davidgamez davidgamez deleted the issue/1404/zip_error_on_windows branch May 16, 2023 13:20
@welcome
Copy link
Copy Markdown

welcome bot commented May 16, 2023

🥳 Congrats on getting your first pull request merged!

@emmambd
Copy link
Copy Markdown
Contributor

emmambd commented May 16, 2023

This is great work @jcpitre! Let's discuss next standup how we can set up testing to catch these kinds of issues in the future. cc @davidgamez (I tested uploading a ZIP file in the interface on a Windows instance when we were reviewing the PRs, but all the GTFS feeds I was using were initially downloaded onto my Mac, which is why this bug wasn't spotted.)

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 "Sorry, only ZIP files are supported at this time." when uploading zip file

4 participants