Skip to content

Commit

Permalink
Fix the same file image upload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticist21 authored and sjdemartini committed Apr 18, 2024
1 parent 6c31f0d commit 74bbaac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controls/MenuButtonImageUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default function MenuButtonImageUpload({
if (event.target.files) {
await handleAndInsertNewFiles(event.target.files);
}

event.target.value = ""; // Clear the input so the same file can be re-uploaded
}}
style={{ display: "none" }} // Hide this input
{...inputProps}
Expand Down

0 comments on commit 74bbaac

Please sign in to comment.