Ckeditor image deletion

(Shekhar Nunia) #1

hey everyone,

I added ckeditor to my models so that it can handle multiple image upload easily but I’m having an problem that when I delete my post from db then the images will not delete, I have a image field also and with the help of delete function I can delete that image but how can I delete those images which are uploaded with the help of ckeditor, kindly suggest any solution.


(Basil Jose) #2

Can you have the rights to place all the images related to a post in a particular folder named by its id.
then on delete simply remove the dir ie dir with the same post id.

this is not possible with ckeditor (at least I see no such functionality out-of-the-box).

You can use a django file manager

For example, django-filebrowser.