Compare commits

..

No commits in common. "308f05ca076758426850660025866e3db5ff205e" and "9785f098d84bcc8f06eeecd804ed5981f7beefda" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

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