We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e2e40 commit 0c3f325Copy full SHA for 0c3f325
APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/FileController.java
@@ -94,7 +94,7 @@ public JSONObject upload(@RequestParam("file") MultipartFile file) {
94
fileRepository.add(file.getOriginalFilename());
95
96
JSONObject res = new JSONObject();
97
- res.put("path", file.getOriginalFilename());
+ res.put("path", "/download/" + file.getOriginalFilename());
98
res.put("size", file.getBytes().length);
99
return new DemoParser().extendSuccessResult(res);
100
}
0 commit comments