Can I ask you the difference between this and rust-s3? #66
Answered
by
paolobarbolini
frederikhors
asked this question in
Q&A
-
Can I ask you the difference between this and rust-s3? I'm trying for the first time Can I ask for your help? And maybe how to use Thanks! 😃 |
Beta Was this translation helpful? Give feedback.
Answered by
paolobarbolini
Dec 14, 2022
Replies: 2 comments 5 replies
-
What you're trying to do should be fairly easy to achieve with Uploading
Downloading
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
frederikhors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you're trying to do should be fairly easy to achieve with
rusty-s3
,reqwest
,headers
andaxum
. Here's a rough guide:Uploading
BodyStream
extractor to obtain the http request body as aStream
ofBytes
. You can also useMultipart
but it requires a few extra stepsTypedHeader<headers::ContentLength>
extractor to obtain the request body Content-Lengthput_object
call usingrusty-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