You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added variants to my model's paperclip config and encountered a problem when re-uploading images. Original was uploaded as expected, but variants were uploaded with incorrect extension (from previous version).
Example: Firstly I uploaded image image.png and everything was good. Original and variants were uploaded and saved.
Later I decided to replace image to image.jpg and original was uploaded correctly, but variants had incorrect extension png from previous version.
I guess problem in methods variantFilename() of AttachmentData and Attachment classes. They return different results after interpolation. AttachmentData class returns path based on previous version of attachment, even in case of re-uploading.
I added variants to my model's paperclip config and encountered a problem when re-uploading images. Original was uploaded as expected, but variants were uploaded with incorrect extension (from previous version).
Example: Firstly I uploaded image
image.png
and everything was good. Original and variants were uploaded and saved.Later I decided to replace image to
image.jpg
and original was uploaded correctly, but variants had incorrect extensionpng
from previous version.I guess problem in methods
variantFilename()
ofAttachmentData
andAttachment
classes. They return different results after interpolation.AttachmentData
class returns path based on previous version of attachment, even in case of re-uploading.Config:
The text was updated successfully, but these errors were encountered: