Hi I have this scenario:
A user adds an image file (say test.jpg) to the server, and subsequently adds the picture to the text editor (in the background the <a href> tag is added). The user then deletes the image in the text editor (in the background the <a href> link is removed) but the image file test.jpg still remains in the server.
How do I make it that everytime the image tag is removed from the editor, the image is automatically deleted?
Appreciate any help!
A user adds an image file (say test.jpg) to the server, and subsequently adds the picture to the text editor (in the background the <a href> tag is added). The user then deletes the image in the text editor (in the background the <a href> link is removed) but the image file test.jpg still remains in the server.
How do I make it that everytime the image tag is removed from the editor, the image is automatically deleted?
Appreciate any help!
Re: Delete image files when image links are deleted