Fix: 같은 파일 2번 업로드 안되는 현상 수정
This commit is contained in:
parent
d743cf3ce9
commit
a8637224b0
@ -40,6 +40,8 @@ export default function ImageUploadFileForm({
|
||||
|
||||
setFiles((prevFiles) => [...prevFiles, ...newImages]);
|
||||
}
|
||||
|
||||
event.target.value = '';
|
||||
};
|
||||
|
||||
const handleDragOver = (event: React.DragEvent<HTMLDivElement>) => {
|
||||
|
@ -27,6 +27,8 @@ export default function ImageUploadFolderForm({ onClose, projectId }: { onClose:
|
||||
if (newFiles) {
|
||||
setFiles((prevFiles) => [...prevFiles, ...Array.from(newFiles)]);
|
||||
}
|
||||
|
||||
event.target.value = '';
|
||||
};
|
||||
|
||||
const handleDragOver = (event: React.DragEvent<HTMLDivElement>) => {
|
||||
|
@ -27,6 +27,8 @@ export default function ImageUploadZipForm({ onClose, projectId }: { onClose: ()
|
||||
if (newFiles) {
|
||||
setFile(newFiles[0]);
|
||||
}
|
||||
|
||||
event.target.value = '';
|
||||
};
|
||||
|
||||
const handleDragOver = (event: React.DragEvent<HTMLDivElement>) => {
|
||||
|
Loading…
Reference in New Issue
Block a user