대용량 다운로드 수정

This commit is contained in:
2026-02-11 13:46:28 +09:00
parent 5b09b2e29a
commit 9885c19b50

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());