Last active
March 28, 2020 18:04
-
-
Save eaiman-shoshi/6414a06db982e4d26adb1de51feff2cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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