Skip to content

Extend MultipartBodyBuilder methods so they accept a filename parameter - #22921

Closed
koziolk wants to merge 3 commits into
spring-projects:masterfrom
koziolk:gh-22616
Closed

koziolk wants to merge 3 commits into
spring-projects:masterfrom
koziolk:gh-22616

Conversation

@koziolk

@koziolk koziolk commented May 7, 2019

Copy link
Copy Markdown

This fix allows passing a filename to MultipartBodyBuilder methods and
sets the proper value of the content disposition header based on it.

Closes gh-22616

This fix allows passing a filename to MultipartBodyBuilder methods and
sets the proper value of the content disposition header based on it.

Closes spring-projectsgh-22616
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 7, 2019
This fix allows passing a filename to MultipartBodyBuilder methods and
sets the proper value of the content disposition header based on it.

Closes spring-projectsgh-22616
This fix allows passing a filename to MultipartBodyBuilder methods and
sets the proper value of the content disposition header based on it.

Closes spring-projectsgh-22616
@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels May 8, 2019
@rstoyanchev

Copy link
Copy Markdown
Contributor

I'm not sure this is headed in the right direction, it doubles the number of methods. I would add a single dedicated method for file parts, something like:

public PartBuilder filePart(String name, String filename, Publishder<DataBuffer> content);

Also more generally, please organize into logical commits via squash. In this PR I would expect one commit only.

@rstoyanchev rstoyanchev self-assigned this May 8, 2019
@rstoyanchev rstoyanchev added this to the 5.x Backlog milestone May 8, 2019
@rstoyanchev

Copy link
Copy Markdown
Contributor

I'll resolve this differently in #23083 through a filename parameter on PartBuilder.

@rstoyanchev rstoyanchev closed this Jun 4, 2019
@rstoyanchev rstoyanchev removed this from the 5.x Backlog milestone Jun 4, 2019
@rstoyanchev rstoyanchev added status: superseded An issue that has been superseded by another and removed type: enhancement A general enhancement labels Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: web Issues in web modules (web, webmvc, webflux, websocket) status: superseded An issue that has been superseded by another

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Content-Disposition for multipart formdata is not correctly set when using Mono<DataBuffer> source

4 participants