Skip to content

Added the Ability to Emit a Blob instead of Download - #155

Open
EricMcWinNer wants to merge 2 commits into
jecovier:masterfrom
EricMcWinNer:master
Open

Added the Ability to Emit a Blob instead of Download#155
EricMcWinNer wants to merge 2 commits into
jecovier:masterfrom
EricMcWinNer:master

Conversation

@EricMcWinNer

Copy link
Copy Markdown

While working with this lovely repository, I came across a special use-case. I needed to create multiple Excel Spreadsheets and bundle them to one zip file to be downloaded by the user on the client side. This created an obvious issue since the sheets get downloaded automatically, so I created this pull request.

This pull request adds the ability to decide whether to download the Excel file or emit a blob. If the prop emitBlob is set to true, then the code will emit a blob, rather than download when the generate method is fired. This gives the ability to create multiple components and loop through them to generate the blobs and then bundle them to one file.

But going beyond my use-case, it will also give the users the ability to process the blob or do something else with it, for instance resend the blob to another API or other processing feature on the blob.

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.

1 participant