Reqwest: How to use multipart form?

Created on 2 Mar 2020  路  2Comments  路  Source: seanmonstar/reqwest

How to upload file using multipart now? As reqwest::multipart::Form::stream is private and reqwest::multipart::Form does not implement Stream, AsyncRead or Into<Body>.

Most helpful comment

I know how to create a form from a stream but... How can I create a body from a form?

All 2 comments

You can create a Part from a stream: https://docs.rs/reqwest/0.10.*/reqwest/multipart/struct.Part.html#method.stream

I know how to create a form from a stream but... How can I create a body from a form?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hwchen picture hwchen  路  4Comments

theduke picture theduke  路  6Comments

richardanaya picture richardanaya  路  5Comments

edouardmenayde picture edouardmenayde  路  4Comments

yazaddaruvala picture yazaddaruvala  路  5Comments