Spring Webflux 415 with MultipartFile Spring Webflux 415 with MultipartFile spring spring

Spring Webflux 415 with MultipartFile


Please use the @RequestPart("file") Mono<FilePart> file or @RequestPart("file") Flux<FilePart> instead of @RequestPart("file") MultipartFile file.

@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)    public Mono<Void> save(@RequestPart("file") Mono<FilePart> file) {        log.info("Storing a new file. Received by Controller");        this.storageService.store(file);        return Mono.empty();    }