Skip to content

how i can read files from a multipart request? #2734

Closed Answered by wangziling
Miguerfi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Miguel~

Here's a demo code in this blog: https://blog.hiibolt.com/rust/axum/tokio/server/2024/01/10/MultipartRustServer.html#result

You can follow it to get the file data(bytes) and file name.
The blog shows that the file is in a multipart form data and named with fileupload.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jplatte
Comment options

Answer selected by Miguerfi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants