-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Hi,
While trying a similar solution like in issue #21142
@PostMapping(path = "/upload/identifiers")
public Mono<FileRef> saveWithIdentifier(@RequestPart("file") Mono<FilePart> file) {
MultipartBodyBuilder bodyBuilder = new MultipartBodyBuilder();
bodyBuilder.asyncPart("file", file, FilePart.class);
return WebClient.create(SOME_URL).put()
.uri(FILE_UPLOAD_URI)
.syncBody(bodyBuilder.build())
.retrieve()
.bodyToMono(FileRef.class);
throws an exception:
org.springframework.core.codec.CodecException: No suitable writer found for part: file
Is this an issue, incomplete documentation or am I just not using it right?
Regards,
Alex
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement