엑셀 업로드 파일용량 확인

This commit is contained in:
hehih 2024-09-19 10:41:28 +09:00
parent 3b093dcdb1
commit 08ca5447ba
12 changed files with 4596 additions and 4589 deletions

View File

@ -317,6 +317,13 @@ function excelFileChange(file) {
fn_errorPopClean(); // 에러 popup 초기화 fn_errorPopClean(); // 에러 popup 초기화
fn_rowCntInit(); fn_rowCntInit();
if (file) { if (file) {
// 파일 크기 체크 (20MB)
const maxSize = 20 * 1024 * 1024; // 20MB in bytes
if (file.size > maxSize) {
alert('파일 크기는 20MB를 초과할 수 없습니다.');
return;
}
fn_loadAddActive(); fn_loadAddActive();
var reader = new FileReader(); var reader = new FileReader();
var extension = file.name.split('.').pop().toLowerCase(); var extension = file.name.split('.').pop().toLowerCase();
@ -506,7 +513,7 @@ $(document).on("click", "#duplicationChkAll", function(e) {
<!-- 엑셀입력 --> <!-- 엑셀입력 -->
<div class="popCont current pop_more_cont" id="popCont_1"> <div class="popCont current pop_more_cont" id="popCont_1">
<div class="titBox"> <div class="titBox">
<p>- 주소록은 한 번에 최대 30만건까지 등록(EXCEL파일, 최대용량 3MB) 가능합니다. </p> <p>- 주소록은 한 번에 최대 30만건까지 등록(EXCEL파일, 최대용량 20MB) 가능합니다. </p>
<p>- 엑셀 파일에 비밀번호 설정, 제한된 보기, 수식 등이 설정되어 있는 경우 업로드가 불가합니다.</p> <p>- 엑셀 파일에 비밀번호 설정, 제한된 보기, 수식 등이 설정되어 있는 경우 업로드가 불가합니다.</p>
<p>- 구분선(|), 역슬래시(, ₩), 큰따옴표(") 등 발송불가 특수문자는 저장되지 않습니다.</p> <p>- 구분선(|), 역슬래시(, ₩), 큰따옴표(") 등 발송불가 특수문자는 저장되지 않습니다.</p>
<p>- 이름 200byte, [*1*]~[*4*] 200byte, 메모 250byte까지 입력 가능합니다.</p> <p>- 이름 200byte, [*1*]~[*4*] 200byte, 메모 250byte까지 입력 가능합니다.</p>