When updating an image in Carrierwave with another image that shares the exact filename the association between the model and the image breaks and the image will no longer be shown.
The reason for this in my understanding is that the name in the store dir will morph into ...(2) but the reference in the model will still point on the file without the new assigned number.
When updating an image in Carrierwave with another image that shares the exact filename the association between the model and the image breaks and the image will no longer be shown.
The reason for this in my understanding is that the name in the store dir will morph into ...(2) but the reference in the model will still point on the file without the new assigned number.
What am I doing wrong?
A simple solution would be (reference):
But I dont think this should be necessary.
Im using Ubuntu: Linux 5.14.0-1059-oem x86_64