This commit is contained in:
@@ -63,12 +63,6 @@ public class FileController {
|
||||
FileEntity fileEntity = fileRepository.findById(fileId)
|
||||
.orElseThrow(() -> new FileNotFoundException("Not found: " + fileId));
|
||||
|
||||
// Path filePath = Paths.get(fileEntity.getFilePath());
|
||||
// if (!Files.exists(filePath)) {
|
||||
// log.error("Not on disk: {}", fileEntity.getFilePath());
|
||||
// return ResponseEntity.notFound().build();
|
||||
// }
|
||||
|
||||
File file = cloudStorageService.readFileFromStorageByPath(fileEntity.getFilePath());
|
||||
|
||||
if (file == null || !file.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user