Skip to content

allow to upload same image more than once #5134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025

Conversation

uinstinct
Copy link
Contributor

Description

Uploading the same image twice is allowed using drag and drop but non functional in click to upload.
This PR adds the ability to upload the same image file more than once using click to upload.

we need to clear the fileinput's current value before uploading the second image

Checklist

  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screenshots

before.mp4
after.mp4

Testing instructions

[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change, including any relevant tests to run. ]

@uinstinct uinstinct requested a review from a team as a code owner April 12, 2025 18:33
@uinstinct uinstinct requested review from tomasz-stefaniak and removed request for a team April 12, 2025 18:33
Copy link

netlify bot commented Apr 12, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 7f3ec4b
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67fab2014027940008916034

@Patrick-Erichsen
Copy link
Collaborator

To be clear, both images will still be submitted alongside the prompt?

@Patrick-Erichsen Patrick-Erichsen requested review from Patrick-Erichsen and removed request for tomasz-stefaniak April 13, 2025 01:57
@uinstinct
Copy link
Contributor Author

To be clear, both images will still be submitted alongside the prompt?

Yes

something like this
image

@Patrick-Erichsen Patrick-Erichsen merged commit 54e3b17 into continuedev:main Apr 17, 2025
32 checks passed
@Patrick-Erichsen
Copy link
Collaborator

Got it, thanks for the contribution here!

@uinstinct uinstinct deleted the fix-image-upload branch April 18, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants