chunk 10M 미만 업로드 수정

This commit is contained in:
Moon
2026-01-15 12:37:27 +09:00
parent 7c68e9e0ed
commit ef0c450094
2 changed files with 4 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ public class ModelMngService {
|| modelUploadResDto.getClsModelFileName() == null || modelUploadResDto.getClsModelFileName() == null
|| modelUploadResDto.getClsModelFileName().isEmpty()) { || modelUploadResDto.getClsModelFileName().isEmpty()) {
return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "파일이 존재하지 않습니다"); return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "pth,json,py파일이 모두 존재하지 않습니다");
} }
addReq.setCdModelPath(modelUploadResDto.getCdModelPath()); addReq.setCdModelPath(modelUploadResDto.getCdModelPath());

View File

@@ -125,6 +125,8 @@ public class UploadService {
} }
} }
return upRes; return upRes;
} }
@@ -190,6 +192,7 @@ public class UploadService {
upAddReqDto.setStatus("UPLOADING"); upAddReqDto.setStatus("UPLOADING");
upRes.setUuid(upAddReqDto.getUuid()); upRes.setUuid(upAddReqDto.getUuid());
uploadSessionCoreService.createUploadSession(upAddReqDto); uploadSessionCoreService.createUploadSession(upAddReqDto);
dto = uploadSessionCoreService.findByUuid(upAddReqDto.getUuid());
} else { } else {
if (dto == null) { if (dto == null) {
upRes.setRes("nosession"); upRes.setRes("nosession");