When adding product images, a discrepancy in database versions between development environments causes the image folder not to be deleted. This results in data inconsistency and potential clutter within the storage system.
Proposed Solution:
Folder Deletion Logic:
Implement logic to check and delete the image folder when adding new images to ensure old images are properly removed.
Ensure this logic is compatible across different development environments and database versions.
Overview:
When adding product images, a discrepancy in database versions between development environments causes the image folder not to be deleted. This results in data inconsistency and potential clutter within the storage system.
Proposed Solution:
Folder Deletion Logic: