Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// use Flux<FilePart> for multiple file upload
@PostMapping(value = "/upload-flux", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_STREAM_JSON_VALUE)
@ResponseStatus(value = HttpStatus.OK)
public Flux<String> upload(@RequestPart("files") Flux<FilePart> filePartFlux) {
return uploadService.getLines(filePartFlux);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment