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

Make saving file to disk optional #6

Open
rightaway opened this issue Feb 5, 2018 · 2 comments
Open

Make saving file to disk optional #6

rightaway opened this issue Feb 5, 2018 · 2 comments

Comments

@rightaway
Copy link

Would you make saving files to disk optional? I'd like to use just the readstreams returned by busboy for the various files and do something else with them rather than save them to disk.

@dominhhai
Copy link
Owner

Uhm.. you can use disk as place to save the tmp files, then using the ReadStream for your tasks.
I don't think any problems here.
If you not specify the dest path, it will save the tmp files on tmp folder.

@rightaway
Copy link
Author

If there's no need to have the file on disk, I don't think it makes sense to consume resources to hit the hard drive in the first place. Many people these days don't store the files locally but stream elsewhere like S3 or a central file server.

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

No branches or pull requests

2 participants