PDA

View Full Version : DFP Thumbnails & Delete Behavior


fragop363190
05-13-2009, 02:57 PM
Ok i have run into a problem.

Delete behavio works for a single image or file.
If you have used DFP2 to create multiple thumbs, how can u delete the thumbs as well while deleting record and main image?

Cause if you create multiple images/thumbs and u cant delete those files with the record you will end up soon having a lot of trash files on your server and this is very bad.

Thanks in advance.

Ray Borduin
05-13-2009, 03:24 PM
I think you should be able to apply the delete file server behavior more than once on the page to delete more than one file.

fragop363190
05-14-2009, 05:56 AM
I'll make a major test with DFP2 and thumbs deletion by tomorrow and give you my feedback. But if i'm correct either it deletes all files (based on DFP upload behavior) or you can't add a second DELETE FILE behavior as it is associated with the upload behavior.

If you got only 1 field in the db and using multiple thumbs with ofc [filename]_thumb or sth like that, then the delete behavior should - optimal- delete the original file [filename] and [filename]_thumb.

I think it is not working like this but i havent heavyly tested it yet but i will do it by tomorrow.