대용량 다운로드 수정 #69

Merged
teddy merged 1 commits from feat/infer_dev_260211 into develop 2026-02-11 13:46:44 +09:00

View File

@@ -388,8 +388,9 @@ public class LabelAllocateApiController {
if (!labelAllocateService.isDownloadable(uuid)) {
throw new BadRequestException();
}
long t = System.currentTimeMillis();
String uid = labelAllocateService.findLearnUid(uuid);
log.info("findLearnUid took {} ms", System.currentTimeMillis() - t);
Path zipPath = Paths.get(responsePath).resolve(uid + ".zip");
long size = Files.size(zipPath);
Resource resource = new org.springframework.core.io.UrlResource(zipPath.toUri());