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

Add support for all streams for uploading files #519

Merged
merged 10 commits into from
Jun 25, 2020

Conversation

sujaygarlanka
Copy link
Contributor

@sujaygarlanka sujaygarlanka commented Jun 23, 2020

Addresses issue #463. Streams other than fs streams could not be used to upload files because these streams don't have the stream length as part of the stream, which is required to upload a file. We now allow a user to pass in the stream length through the options parameter for Files.uploadFile and Files.uploadNewFileVersion, so other streams are now supported. Solution was inspired by #143.

@coveralls
Copy link
Collaborator

coveralls commented Jun 23, 2020

Pull Request Test Coverage Report for Build 2399

  • 9 of 9 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 97.237%

Totals Coverage Status
Change from base Build 2382: 0.01%
Covered Lines: 2325
Relevant Lines: 2358

💛 - Coveralls

lib/managers/files.js Outdated Show resolved Hide resolved
lib/managers/files.js Show resolved Hide resolved
lib/managers/files.js Outdated Show resolved Hide resolved
sujaygarlanka and others added 4 commits June 24, 2020 10:39
Co-authored-by: Patrick Simon <patrick@box.com>
Co-authored-by: Patrick Simon <patrick@box.com>
Co-authored-by: Patrick Simon <patrick@box.com>
@sujaygarlanka sujaygarlanka merged commit 93a27ec into master Jun 25, 2020
@sujaygarlanka sujaygarlanka deleted the support-additional-streams branch June 25, 2020 15:21
@salazarm
Copy link

It still doesn't work with Readable.from(['mystringhere']) ? =(

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.

None yet

4 participants