dev fix file public endpoint
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-21 01:31:30 +07:00
parent 9ad4830edb
commit 7492b8aa7f
2 changed files with 1 additions and 21 deletions
@@ -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()) {