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

Feature request: Allow sending file with a Stream instead of filePath #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garbidge
Copy link
Contributor

Feel free to close this if the change is unwanted, I thought it could be useful though.

Currently when sending a file, a filePath is required so there has to be a saved file to read from. I believe it would also be useful to be able to provide a Stream, for example in use cases such as:

  • Creating the CSV file in memory without having it saved to disk.
  • Accepting an uploaded file on a server and passing the stream in directly without first saving it to disk.

I've added an overload for the existing methods that takes a Stream and file name

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