Skip to content

Support Publishers for multipart data in BodyInserters [SPR-16307] #20854

Closed
@spring-projects-issues

Description

@spring-projects-issues

Marc-Christian Schulze opened SPR-16307 and commented

In order to stream content into a MultipartRequest it would be nice to have support for Publisher, e.g.:

Publisher<ByteBuffer> publisher = ...

WebClient 
    .create(someUrl) 
    .post() 
    .uri(URI.create("/whatever")) 
    .body(BodyInserters.fromMultipartData("file", publisher))
    ...

Issue Links:

Referenced from: commits 283811b, 7035ee7, 6c3a645, f23612c

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions