|
|
@ -160,7 +160,9 @@ public class StngController extends ApplicationController {
|
|
|
|
String bgFullPath = bgPath + "/" + fileName;
|
|
|
|
String bgFullPath = bgPath + "/" + fileName;
|
|
|
|
File newFile = new File(bgFullPath);
|
|
|
|
File newFile = new File(bgFullPath);
|
|
|
|
if(newFile.exists()) {
|
|
|
|
if(newFile.exists()) {
|
|
|
|
newFile.delete();
|
|
|
|
if(!newFile.delete()) {
|
|
|
|
|
|
|
|
throw new RuntimeException("배경 이미지 업로드 중 오류가 발생하였습니다.");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
backgroundFile.transferTo(newFile);
|
|
|
|
backgroundFile.transferTo(newFile);
|
|
|
|
|
|
|
|
|
|
|
|