chunk 10M 미만 업로드 수정
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user