Skip to content

feature request: support stream upload #1821

@bxb100

Description

@bxb100

typically code like this:

let mut file = File::open("bigfile").await.unwrap();
let mut vec = Vec::new();
file.read_to_end(&mut vec).await?;
// ..snippet
op.write("file", vec).await?;

it will load the file into memory at first, but
reqwest-0.11.15/src/async_impl/body.rs:218 originally support stream upload

I test different ways to upload a 1GB file, and the process usage:

using stream:
image

not using stream:
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions