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

Stream file upload to s3 if client supports it #259

Closed
wants to merge 1 commit into from

Conversation

simao
Copy link
Contributor

@simao simao commented Mar 11, 2020

If client uploads the file contents as request entity, and a valid
Content-Length header, upload file to s3 instead of buffering
locally.

This is equivalent to the following curl command:

curl -H 'application/octet-stream' --data-binary @myfile.bin host:/api/v2/objects/:object-i

Not this is different from the request the UI currently uses, which
includes a form field and does not provide a valid size for the file.

If client uploads the file contents as request entity, and a valid
`Content-Length` header, upload file to s3 instead of buffering
locally.

This is equivalent to the following curl command:

```
curl -H 'application/octet-stream' --data-binary @myfile.bin host:/api/v2/objects/:object-i
```

Not this is different from the request the UI currently uses, which
includes a form field and does not provide a valid size for the file.
@simao simao force-pushed the feat/OTA-4635/stream-upload branch from 2afd3bf to 74186fe Compare March 11, 2020 14:07
@simao simao closed this Mar 11, 2020
@simao simao deleted the feat/OTA-4635/stream-upload branch March 11, 2020 14:07
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