싱크경로 yml에 설정하고 FileConfig 삭제

영상관리 수정
This commit is contained in:
Moon
2025-12-26 08:50:05 +09:00
parent 8bed8f5f38
commit 5707a31309
11 changed files with 171 additions and 736 deletions

View File

@@ -478,6 +478,21 @@ public class FIleChecker {
return fileTotSize;
}
public static boolean multipartSaveTo(MultipartFile mfile, String targetPath)
{
Path tmpSavePath = Paths.get(targetPath);
boolean fileUpload = true;
try {
mfile.transferTo(tmpSavePath);
} catch (IOException e) {
// throw new RuntimeException(e);
return false;
}
return true;
}
public static boolean validationMultipart(MultipartFile mfile)
{
// 파일 유효성 검증