reset form fields and update success message after image upload
This commit is contained in:
parent
4ce60e2cc9
commit
4bdc8cdbfa
1 changed files with 6 additions and 1 deletions
|
|
@ -260,7 +260,12 @@ export default function AddPage() {
|
|||
throw new Error(responseText || `업로드 실패: ${response.status}`);
|
||||
}
|
||||
|
||||
setSuccess(`${selectedCount}개 이미지 업로드를 요청했습니다.`);
|
||||
const uploadedCount = selectedCount;
|
||||
setUrl("");
|
||||
setAuthor("");
|
||||
setTagsText("");
|
||||
resetPreview();
|
||||
setSuccess(`${uploadedCount}개 이미지 업로드를 요청했습니다.`);
|
||||
} catch (submitError) {
|
||||
setError(submitError instanceof Error ? submitError.message : "업로드에 실패했습니다.");
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue