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

How to compute content-length when body is of type fs.createReadStream #2384

Open
1 task done
milad2golnia opened this issue Oct 16, 2024 · 0 comments
Open
1 task done

Comments

@milad2golnia
Copy link

milad2golnia commented Oct 16, 2024

What would you like to discuss?

I have a big file on file system and I want to upload it to AWS.
Documentation says:

Since Got 12, the content-length header is not automatically set when body is an instance of fs.createReadStream().
...

But when uploading to AWS, we need to set content-length. How can I calculate it?

Checklist

  • I have read the documentation.
@github-staff github-staff deleted a comment Oct 29, 2024
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

1 participant