diff --git a/admin/src/main/resources/mappers/household/UpdateHouseholdMapper.xml b/admin/src/main/resources/mappers/household/UpdateHouseholdMapper.xml
index ca0668e3..e603a5a7 100644
--- a/admin/src/main/resources/mappers/household/UpdateHouseholdMapper.xml
+++ b/admin/src/main/resources/mappers/household/UpdateHouseholdMapper.xml
@@ -29,9 +29,7 @@
| - - | +선택 | 조사원명 | 전화번호 | 실사 | @@ -117,8 +115,13 @@ diff --git a/admin/src/main/resources/templates/communication/notice/{id}.html b/admin/src/main/resources/templates/communication/notice/{id}.html index 59487c1a..5fd368e7 100644 --- a/admin/src/main/resources/templates/communication/notice/{id}.html +++ b/admin/src/main/resources/templates/communication/notice/{id}.html @@ -32,7 +32,7 @@
첨부 가능 파일 형식: 문서(pdf, docx, xlsx, pptx, hwp), 이미지(jpg, jpeg, png, gif), 기타(zip, @@ -231,6 +231,19 @@ } }); } + + // JavaScript 함수 추가 + function validateFileSize(input) { + const maxSize = 5 * 1024 * 1024; // 5MB + const file = input.files[0]; + + if (file && file.size > maxSize) { + alert('파일 크기는 5MB 이하만 업로드 가능합니다.'); + input.value = ''; // 파일 선택 초기화 + return false; + } + return true; + } diff --git a/admin/src/main/resources/templates/households/households.html b/admin/src/main/resources/templates/households/households.html index 9de2bce3..df290145 100644 --- a/admin/src/main/resources/templates/households/households.html +++ b/admin/src/main/resources/templates/households/households.html @@ -281,8 +281,8 @@ onclick="location.href='/households/create'"> 임가 등록 - - | ||
|---|---|---|---|---|---|---|---|