I don't know if this is possible but it would be great to see the option to enable image deletion when a node was deleted, if used with browser then it would be good if it could check for usage of an image on other nodes, and only deleted file once all nodes using it were removed.

Comments

eugenmayer’s picture

Title: Possible? File cleanup on node deletion. » Delete not needed images on node deletion

Well this wont be to complicated but still it has some requirements:
1. When a node gets deleted, use the nid to get all fids (images) attached to that node ( in all revisions ) using the wysiwyg_imageupload
2. For every of those fids we need to check in thw wysiwyg_imageupload table, if any other nodes are using that image, if yes, dont delete it

Feel free to implement, would be great to have more people contributing.

Right now i concentrate my time to fix bugs only, so we have this module stable. Features are yet to be implemented by others until i find the time :)

eugenmayer’s picture

Version: 6.x-1.x-dev » 6.x-2.0-beta1
Status: Active » Fixed

will be included in 6.2.0

fasdalf@fasdalf.ru’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta2

It is possible to upload images to comments. But comment's images are not deleted on coment delete.
Could you make this files go away?

eugenmayer’s picture

Status: Fixed » Closed (fixed)