You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content-Disposition for multipart formdata is not correctly set when using Mono<DataBuffer> source #22616
That always failed because there is not filename known in the generated content disposition header. A good way to solve this would be to add a filename parameter to the asyncPart builder.
When getting a link to a source code line, please don't simply point to master because those lines change and sometimes it can be hard to notice. Hit 'y` to get a link for a fixed point in time.
Currently MultipartBuilderBuilder accepts a part name but the underlying HttpHeaders#setContentDispositionFormData also accepts an optional filename. I think the suggestion makes sense. We could add a couple of extra methods in MultipartBodyBuilder that also accept a filename.
@rstoyanchev If I got it correctly it's about adding new builder methods to MultipartBuilderBuilder by extending MultipartBuilderBuilder#part and MultipartBuilderBuilder#asynPart with additional filename parameter and then passing it to HttpHeaders#setContentDispositionFormData?
Activity
rstoyanchev commentedon Apr 12, 2019
When getting a link to a source code line, please don't simply point to master because those lines change and sometimes it can be hard to notice. Hit 'y` to get a link for a fixed point in time.
rstoyanchev commentedon Apr 12, 2019
Currently
MultipartBuilderBuilderaccepts a part name but the underlyingHttpHeaders#setContentDispositionFormDataalso accepts an optional filename. I think the suggestion makes sense. We could add a couple of extra methods inMultipartBodyBuilderthat also accept a filename.koziolk commentedon Apr 25, 2019
@rstoyanchev If I got it correctly it's about adding new builder methods to
MultipartBuilderBuilderby extendingMultipartBuilderBuilder#partandMultipartBuilderBuilder#asynPartwith additionalfilenameparameter and then passing it toHttpHeaders#setContentDispositionFormData?koziolk commentedon Apr 28, 2019
@rstoyanchev @stdreyer I'm interested to work on it.
rstoyanchev commentedon Apr 29, 2019
@koziolk that's the idea, yes.
ielatif commentedon May 7, 2019
@koziolk did you get a chance to work on this? If not, I can pick it up if you don't mind
koziolk commentedon May 7, 2019
@ielatif Yes, I did. I'm going to submit a pull request Today.
Extend MultipartBodyBuilder methods so they accept a filename parameter
koziolk commentedon May 7, 2019
@rstoyanchev @stdreyer I've added a filename to MultipartBuilderBuilder methods (regular and async). Take a look at my PR. Thanks.
Extend MultipartBodyBuilder methods so they accept a filename parameter
Extend MultipartBodyBuilder methods so they accept a filename parameter
rstoyanchev commentedon May 8, 2019
Superseded by #22921.