-
Notifications
You must be signed in to change notification settings - Fork 73
Tranformed images are not deleted automatically #189
Comments
Hi, Example:
In this case I used field named "thumbnail" to store the filename. Have a try. |
@richcom: I too am having that problem. I tried removing the nameCallback from the transform and still the same. I do however have a lot of other files that I am dealing with with this uploader (config for example) and the error I am getting is that it is looking for the config finalPath provided which references another image and model completely. For me it deletes the transformed image and not the original. I am using Version 4.6.0 with CakePHP Version 2.5.8.
@zhaff: The 'imageSmall' key takes care of the dbColumn so you don't have to repeat it in the array. I did test and if you provide the dbColum, it does overwrite the 'imageSmall' key and save to whatever you name it however it isn't necessary since it is already handled. |
What versions of Cake are you all using? |
It seems that other images are not being deleted now. I am using Version 4.6.0 with CakePHP Version 2.5.8. I checked my error logs in cake after deleting an image (this time without transformation) and it has the wrong path even though the right one is stored in the db. Let's say I am trying to delete /files/part-icon/ba1fcc2a10897dd417ec7e6408a7c7e3.stl The error I am getting is /files/item-configs/ba1fcc2a10897dd417ec7e6408a7c7e3.stl does not exist Seems it is getting stuck on the first directory in the Attachment array. Thanks Miles. |
Hi,
first, great job!!
I have a problem! If I delete a database record, only the original imge are deleted.
The transformed images are not deleted!
What must I do to make it work?
The text was updated successfully, but these errors were encountered: