Logo Executive is your partner in logo exploration. Our platform boasts a collection of APIs designed to simplify the process of obtaining company logos.
We need to implement a feature that allows admins to reupload images, ensuring that the reuploaded image maintains the same name and extension as the original image. The image name and extension should not be updated in the database.
Requirements:
Backend:
Create a controller function to handle the image reupload functionality.
Create a new API route: api/admin/reupload.
Expected Behavior
When an admin attempts to reupload an image, the system checks that the new image being uploaded has the exact same name and file extension as the existing image stored in the system.
If the image name or extension does not match, the system should reject the reupload with an appropriate error message.
Confirmation Checklist
[X] I have searched for similar issues before creating this one.
[X] I have provided all the necessary information to understand and reproduce the issue.
What is this issue related to?
Feature
Description
We need to implement a feature that allows admins to reupload images, ensuring that the reuploaded image maintains the same name and extension as the original image. The image name and extension should not be updated in the database.
Requirements:
Backend:
Expected Behavior
Confirmation Checklist