generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
type: enhancementNew feature or requestNew feature or request
Description
The idea would be that the transferTo() method could use the new URI formats from #112:
public Publisher<HttpResponse<String>> upload(ObjectStorageStreamingFileUpload upload){
Publisher<Boolean> uploadPublisher = file.transferTo("public-image://www/uploads/" + upload.getFilename());
return Mono.from(uploadPublisher)
.map(success -> {
if (success) {
return HttpResponse.ok("Uploaded");
} else {
return HttpResponse.<String>status(CONFLICT)
.body("Upload Failed");
}
});
}Metadata
Metadata
Assignees
Labels
type: enhancementNew feature or requestNew feature or request