Using axum and reqwest to upload a file to cloud bucket, streaming it #46
Unanswered
frederikhors
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Apologies, but I'm struggling to see why this was posted here. Where is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm also opening this question here with the lively hope of being able to resolve it with your invaluable help.
Stackoverflow question is here: https://stackoverflow.com/questions/74815430/using-axum-and-reqwest-to-upload-a-file-to-cloud-bucket-streaming-it.
I've created a small Github repo that mimics exactly what I'm trying to achieve: streaming file uploads to both file systems and the cloud (S3) using
axum
(andreqwest
).I can change all the code you see. There is no restriction. All signatures were invented by me who are in my early days with the awesome Rust.
If you want I can also eliminate
reqwest
, as long as I understand what to use instead! 😄Can you help me understand how to fix the only error left?
I think that the ``static` bound multer applies is causing this. Is that bound strictly needed? Can we avoid it?
This is the relevant code I think:
UPDATE:
I tried with
hyper
too and it's the same error obviously:Beta Was this translation helpful? Give feedback.
All reactions