Skip to content

Can I ask you the difference between this and rust-s3? #66

Discussion options

You must be logged in to vote

What you're trying to do should be fairly easy to achieve with rusty-s3, reqwest, headers and axum. Here's a rough guide:

Uploading

  1. Use a BodyStream extractor to obtain the http request body as a Stream of Bytes. You can also use Multipart but it requires a few extra steps
  2. Use the TypedHeader<headers::ContentLength> extractor to obtain the request body Content-Length
  3. Do a put_object call using rusty-s3, similar to the last 3 lines of this example: https://docs.rs/rusty-s3/0.3.2/rusty_s3/index.html#basic-getting-started-example
  4. Use the reqwest crate to make a PUT request using the signed URL generated by rusty-s3, adding a Content-Length header with the value of the previously obtained Co…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@frederikhors
Comment options

@frederikhors
Comment options

@paolobarbolini
Comment options

@frederikhors
Comment options

@frederikhors
Comment options

Answer selected by frederikhors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants