@@ -7,7 +7,14 @@ import * as c from '../style.css';
77import SelectedPhoto from '../../uploadedPhoto' ;
88import UploadFile from '../../UploadFile' ;
99import { useStep5Store } from '@/features/post/stores/Step5Store' ;
10- import { ALLOWED_EXTENSIONS , MAX_DESC , MAX_SIZE_BYTES , MAX_SIZE_MB , MAX_TITLE } from '@/libs/constants' ;
10+ import {
11+ ALLOWED_EXTENSIONS ,
12+ MAX_DESC ,
13+ MAX_FILE_LENGTH ,
14+ MAX_SIZE_BYTES ,
15+ MAX_SIZE_MB ,
16+ MAX_TITLE ,
17+ } from '@/libs/constants' ;
1118import AlertText from '../../AlertText' ;
1219import { getFileKeys } from '@/common/utils/getFileKeys' ;
1320import getImageUrl from '@/common/utils/getImageUrl' ;
@@ -42,11 +49,11 @@ const Step5 = () => {
4249 const validFiles = fileArray . filter ( file => {
4350 const ext = file . name . split ( '.' ) . pop ( ) ?. toLowerCase ( ) ;
4451 if ( ! ext || ! ALLOWED_EXTENSIONS . includes ( ext ) ) {
45- openToast ( { message : `" ${ file . name } "์(๋) ์ง์ํ์ง ์๋ ํ์ฅ์์
๋๋ค.` } ) ;
52+ openToast ( { message : `์ง์ํ์ง ์๋ ํ์ฅ์์
๋๋ค.` } ) ;
4653 return false ;
4754 }
4855 if ( file . size > MAX_SIZE_BYTES ) {
49- openToast ( { message : `" ${ file . name } "์(๋) ${ MAX_SIZE_MB } MB๋ฅผ ์ด๊ณผํฉ๋๋ค.` } ) ;
56+ openToast ( { message : `${ MAX_SIZE_MB } MB๋ฅผ ์ด๊ณผํฉ๋๋ค.` } ) ;
5057 return false ;
5158 }
5259 return true ;
@@ -122,8 +129,8 @@ const Step5 = () => {
122129 </ div >
123130
124131 < div className = { s . AlertText } >
125- < AlertText isIcon = { true } > ์ต๋ 6์ฅ๊น์ง ๋ฑ๋ก์ด ๊ฐ๋ฅํด์.</ AlertText >
126- < AlertText isIcon = { true } > ์ฅ๋น ์ต๋ 5MB๊น์ง ๋ฑ๋ก์ด ๊ฐ๋ฅํด์.</ AlertText >
132+ < AlertText isIcon = { true } > ์ต๋ { MAX_FILE_LENGTH } ์ฅ๊น์ง ๋ฑ๋ก์ด ๊ฐ๋ฅํด์.</ AlertText >
133+ < AlertText isIcon = { true } > ์ฅ๋น ์ต๋ { MAX_SIZE_MB } MB๊น์ง ๋ฑ๋ก์ด ๊ฐ๋ฅํด์.</ AlertText >
127134 </ div >
128135 </ div >
129136 </ div >
0 commit comments