Skip to content
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

Use file checksum to detect when a duplicate image is uploaded #534

Closed
odin-h opened this issue Apr 15, 2024 · 1 comment
Closed

Use file checksum to detect when a duplicate image is uploaded #534

odin-h opened this issue Apr 15, 2024 · 1 comment
Labels
✨ enhancement New feature or request 📷 Proofs ⭐ top issue Top issue.

Comments

@odin-h
Copy link
Collaborator

odin-h commented Apr 15, 2024

Problem

When uploading an image that has already been uploaded before, the image is added as a duplicate and given a new proof ID.

Proposed solution

Use the file checksum to check if the same file already exists and assign the existing proof ID of that file to the price upload form instead of reuploading the file.

Additional context

Additionally, a message could be displayed informing the user about what happened. To do this, checksums of the original files would probably have to be stored since they won't be the same as the final compressed files.

@raphodn
Copy link
Member

raphodn commented Oct 11, 2024

Closing in favor of a dedicated issue in the backend : openfoodfacts/open-prices#514

@raphodn raphodn closed this as completed Oct 11, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in 💸 Open Prices Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 📷 Proofs ⭐ top issue Top issue.
Projects
Archived in project
Development

No branches or pull requests

3 participants