Put autodelete=True on the db field definition upload.

from the book:

autodelete determines if the corresponding uploaded file should be deleted
when the record referencing the file is deleted. For "upload" fields only.

2011/3/29 LightOfMooN <vladsale...@yandex.ru>

> Question is opened.
> App working, HDD space decreases because of uploads. But some uploads
> are deleted from database, but files not.
> How to clean it?
>
> On 27 мар, 20:25, LightOfMooN <vladsale...@yandex.ru> wrote:
> > Is there a way to pack just app code?
> > (without images and other uploads)
> > Or it can be done only by manual delete upload content?
>



-- 
Pablo Martín Mulone (mar...@tecnodoc.com.ar)
http://www.tecnodoc.com.ar/

My blog: http://martin.tecnodoc.com.ar
Expert4Solution Profile:
http://www.experts4solutions.com/e4s/default/expert/6

Reply via email to