This commit is contained in:
@@ -286,9 +286,6 @@ public class ApiController {
|
||||
}
|
||||
}
|
||||
|
||||
@Value("${file.storage.base-path}")
|
||||
private String baseStoragePath;
|
||||
|
||||
@GetMapping("/v{version}/files/download/{fileId}")
|
||||
public ResponseEntity<?> downloadFile(
|
||||
@PathVariable(required = false) String fileId,
|
||||
@@ -340,9 +337,8 @@ public class ApiController {
|
||||
errorData));
|
||||
}
|
||||
|
||||
// String fullPath = baseStoragePath + "/" + entityResponse.getProtectStatus();
|
||||
// Path filePath = Paths.get(entityResponse.getProtectStatus());
|
||||
Path filePath = Paths.get(entityResponse.getProtectStatus());
|
||||
|
||||
Path filePath = Paths.get(entityResponse.getProtectedFilePath());
|
||||
Resource resource = new UrlResource(filePath.toUri());
|
||||
|
||||
if (!resource.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user