diff --git a/src/hooks/useAttachments.ts b/src/hooks/useAttachments.ts index 95ed53e..173c2ba 100644 --- a/src/hooks/useAttachments.ts +++ b/src/hooks/useAttachments.ts @@ -13,6 +13,8 @@ export function useAttachments() { if (e.target.files && e.target.files.length > 0) { const files = Array.from(e.target.files); setAttachments((attachments) => [...attachments, ...files]); + // Clear the input value so the same file can be selected again + e.target.value = ""; } };