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

fix: use multi-part file size to set content length property #1156

Merged
merged 4 commits into from
Nov 26, 2022

Conversation

igdianov
Copy link
Contributor

@igdianov igdianov commented Nov 20, 2022

This PR fixes a problem with using HTTP request content length when uploading files via multi-part form data PUT request.

The content length should be set using multipart/form-data file size instead of HTTP request content length, so that content can be downloaded later with the correct file length in the HTTP response.

@CLAassistant
Copy link

CLAassistant commented Nov 20, 2022

CLA assistant check
All committers have signed the CLA.

@igdianov igdianov changed the title fix: use resource content length to set content length property fix: use multi-part file size to set content length property Nov 25, 2022
@igdianov
Copy link
Contributor Author

@paulcwarren I updated the code in the PR to set content length for multi-part upload requests using multiPart file size.

@igdianov
Copy link
Contributor Author

@paulcwarren I resolved the problem with CLA checks. Can you approve the CI build again?

@paulcwarren paulcwarren merged commit 9f44d96 into paulcwarren:main Nov 26, 2022
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.

3 participants