chunk 10M 미만 업로드 수정
This commit is contained in:
@@ -88,7 +88,7 @@ public class ModelMngService {
|
||||
|| modelUploadResDto.getClsModelFileName() == null
|
||||
|| modelUploadResDto.getClsModelFileName().isEmpty()) {
|
||||
|
||||
return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "파일이 존재하지 않습니다");
|
||||
return new ApiResponseDto.ResponseObj(ApiResponseCode.NOT_FOUND, "pth,json,py파일이 모두 존재하지 않습니다");
|
||||
}
|
||||
|
||||
addReq.setCdModelPath(modelUploadResDto.getCdModelPath());
|
||||
|
||||
@@ -125,6 +125,8 @@ public class UploadService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return upRes;
|
||||
}
|
||||
|
||||
@@ -190,6 +192,7 @@ public class UploadService {
|
||||
upAddReqDto.setStatus("UPLOADING");
|
||||
upRes.setUuid(upAddReqDto.getUuid());
|
||||
uploadSessionCoreService.createUploadSession(upAddReqDto);
|
||||
dto = uploadSessionCoreService.findByUuid(upAddReqDto.getUuid());
|
||||
} else {
|
||||
if (dto == null) {
|
||||
upRes.setRes("nosession");
|
||||
|
||||
Reference in New Issue
Block a user