diff --git a/src/main/java/com/eactive/apim/portal/apps/community/partnership/service/PartnershipApplicationFacadeImpl.java b/src/main/java/com/eactive/apim/portal/apps/community/partnership/service/PartnershipApplicationFacadeImpl.java index 157b345..3272959 100644 --- a/src/main/java/com/eactive/apim/portal/apps/community/partnership/service/PartnershipApplicationFacadeImpl.java +++ b/src/main/java/com/eactive/apim/portal/apps/community/partnership/service/PartnershipApplicationFacadeImpl.java @@ -44,6 +44,7 @@ public class PartnershipApplicationFacadeImpl implements PartnershipApplicationF FileTypeContext.setFileType("business"); file = fileService.createFile(partnershipApplicationDTO.getFiles()); } finally { + FileTypeContext.clear(); FileService.clearInternalUserContext(); } } diff --git a/src/main/resources/templates/views/apps/community/mainPartnershipForm.html b/src/main/resources/templates/views/apps/community/mainPartnershipForm.html index a17f080..6e8d7fc 100644 --- a/src/main/resources/templates/views/apps/community/mainPartnershipForm.html +++ b/src/main/resources/templates/views/apps/community/mainPartnershipForm.html @@ -113,9 +113,12 @@ - + + 첨부파일은 8MB 이내로 등록해 주세요. 문서파일(pdf, doc, docx, xls, xlsx, ppt, pptx, hwp)과 이미지 파일(gif, jpg, png)만 등록 가능합니다. @@ -217,6 +220,14 @@ } /*[/]*/ + const maxSizeBytes = (window.PORTAL_CONFIG && window.PORTAL_CONFIG.file) + ? window.PORTAL_CONFIG.file.maxSizeBytes : 0; + if (maxSizeBytes > 0 && file.size > maxSizeBytes) { + customPopups.showAlert('첨부파일은 ' + window.PORTAL_CONFIG.file.maxSize + ' 이내로 등록해 주세요.'); + fileInput.value = ''; + return; + } + if (fileDisplayText && fileInputDisplay && btnRemoveFile) { fileDisplayText.textContent = file.name; fileDisplayText.classList.add('has-file');