|
|
|
@ -69,16 +69,13 @@ public class GatesController {
@@ -69,16 +69,13 @@ public class GatesController {
|
|
|
|
|
Document doc = new Document(); |
|
|
|
|
doc.setName(file.getOriginalFilename()); |
|
|
|
|
doc.setSize(file.getSize()); |
|
|
|
|
/** |
|
|
|
|
* Hfcibhtybt |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
Optional<String> ext = Optional.ofNullable(file.getOriginalFilename()) |
|
|
|
|
.filter(f -> f.contains(".")) |
|
|
|
|
.map(f -> f.substring(file.getOriginalFilename().lastIndexOf(".") + 1)); |
|
|
|
|
doc.setExtension(ext.get()); |
|
|
|
|
doc.setExtension( ext.get()); |
|
|
|
|
// doc.setPath();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doc = client.post() |
|
|
|
|
.uri("http://resource-service-api:8181/storage-entry/create") |
|
|
|
|
.body(Mono.just(doc), Document.class) |
|
|
|
|