This topic is locked

Thumbnail problem when I delete image

6/6/2007 5:28:57 AM
PHPRunner General questions
J
jacekq author

Hi,
I store images to database field. These images are rather big size so I've to use additional field to store thumbnails. They are generated on the fly - I've checked proper option in Visual Editor Property Tab.

So far so good. I can see thumbnails on the list page.

Problem starts when I delete an image on edit page - it's removed form database field (I mean big picture) but thumbnail field is not changed - it shows thumbnail picture of deleted image.

Maybe I should add some event?
Regards,

Jacek

admin 6/7/2007

Jacek,
yes, you need to create BeforeEdit event that deletes thumbnail image as well.