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

Zip CSV file downloads so there is only one file #680

Merged
merged 4 commits into from
Apr 10, 2017
Merged

Zip CSV file downloads so there is only one file #680

merged 4 commits into from
Apr 10, 2017

Conversation

jeremiak
Copy link
Contributor

@jeremiak jeremiak commented Apr 5, 2017

The browser alert/permission request to download multiple files is subtle on many popular browsers so it was confusing people as to why their files didn't download. Instead, we can wrap all the files into a single .zip file so that the user can easily get all the relevant data.

Jeremia Kimelman added 2 commits April 5, 2017 19:07
The browser alert/permission request to download multiple files is
subtle on many popular browsers so it was confusing people as to why
their files didn't download. Instead, we can wrap all the files into a
single .zip file so that the user can easily get all the relevant data.

if (!multipleFiles && first.url) return triggerUrlDownload(first.url)

zip.file(`${dirname}/README.md`, `#${lowerCase(dirname)}\n`)
Copy link
Contributor

Choose a reason for hiding this comment

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

does there need to be a space after the # in the second parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, added

@brendansudol
Copy link
Contributor

modulo the codeclimate nit, looks good, and nice usability lift

@jeremiak jeremiak merged commit 84d2048 into master Apr 10, 2017
@jeremiak jeremiak deleted the jk-zip branch April 10, 2017 17:04
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.

2 participants