Merge pull request '대용량 다운로드 수정' (#69) from feat/infer_dev_260211 into develop
Reviewed-on: #69
This commit was merged in pull request #69.
This commit is contained in:
@@ -388,8 +388,9 @@ public class LabelAllocateApiController {
|
|||||||
if (!labelAllocateService.isDownloadable(uuid)) {
|
if (!labelAllocateService.isDownloadable(uuid)) {
|
||||||
throw new BadRequestException();
|
throw new BadRequestException();
|
||||||
}
|
}
|
||||||
|
long t = System.currentTimeMillis();
|
||||||
String uid = labelAllocateService.findLearnUid(uuid);
|
String uid = labelAllocateService.findLearnUid(uuid);
|
||||||
|
log.info("findLearnUid took {} ms", System.currentTimeMillis() - t);
|
||||||
Path zipPath = Paths.get(responsePath).resolve(uid + ".zip");
|
Path zipPath = Paths.get(responsePath).resolve(uid + ".zip");
|
||||||
long size = Files.size(zipPath);
|
long size = Files.size(zipPath);
|
||||||
Resource resource = new org.springframework.core.io.UrlResource(zipPath.toUri());
|
Resource resource = new org.springframework.core.io.UrlResource(zipPath.toUri());
|
||||||
|
|||||||
Reference in New Issue
Block a user