Hello,
I wonder if there could be any change to also set null value in two DB fields when using Delete existing file and Delete if not upload on Update Upload, now it is only on one of the DB fields that is the choosen DB field that set NULL value in the record.
The resized image and thumbnail image is DELETED in the folder but still the Site Path and Name is left in the thumbnail field in this case.
Using this for a news function on a site and there is a main page that will show brief text and thumbnail and if you will click on the link the whole text and a bigger image is shown on a detail page.
I�m using an IF statement that shows a blank image 1x1 pixel if the image and thumbnail fields are empty, it works fine when there is inserted a new news article and there is no image uploaded and the fields are empty.
But when an article has been created and resized image and thumbnail has been created and the author then will change and will delete only the images (Delete if not upload) in the article then the default image will be shown for one of the image field in the recordset that is empty, but for example the thumbnail where the Site and Path Name is still left in the field then there will this "red X" for no image is shown since the Site Path and Name is still left in one of the DB fields.
Klas |
|
|