jskim-node #388
|
|
@ -492,11 +492,11 @@ const FileUploadComponent: React.FC<FileUploadComponentProps> = ({
|
||||||
// 파일 업로드 설정 - componentConfig가 undefined일 수 있으므로 안전하게 처리
|
// 파일 업로드 설정 - componentConfig가 undefined일 수 있으므로 안전하게 처리
|
||||||
const safeComponentConfig = componentConfig || {};
|
const safeComponentConfig = componentConfig || {};
|
||||||
const fileConfig = {
|
const fileConfig = {
|
||||||
|
...safeComponentConfig,
|
||||||
accept: safeComponentConfig.accept || "*/*",
|
accept: safeComponentConfig.accept || "*/*",
|
||||||
multiple: safeComponentConfig.multiple || false,
|
multiple: safeComponentConfig.multiple || false,
|
||||||
maxSize: safeComponentConfig.maxSize || 10 * 1024 * 1024, // 10MB
|
maxSize: safeComponentConfig.maxSize || 10 * 1024 * 1024, // 10MB
|
||||||
maxFiles: safeComponentConfig.maxFiles || 5,
|
maxFiles: safeComponentConfig.maxFiles || 5,
|
||||||
...safeComponentConfig,
|
|
||||||
} as FileUploadConfig;
|
} as FileUploadConfig;
|
||||||
|
|
||||||
// 파일 선택 핸들러
|
// 파일 선택 핸들러
|
||||||
|
|
@ -1117,7 +1117,7 @@ const FileUploadComponent: React.FC<FileUploadComponentProps> = ({
|
||||||
onFileDelete={handleFileDelete}
|
onFileDelete={handleFileDelete}
|
||||||
onFileView={handleFileView}
|
onFileView={handleFileView}
|
||||||
onSetRepresentative={handleSetRepresentative}
|
onSetRepresentative={handleSetRepresentative}
|
||||||
config={safeComponentConfig}
|
config={fileConfig}
|
||||||
isDesignMode={isDesignMode}
|
isDesignMode={isDesignMode}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue