of course....

say you have

   db.define_table('image',SQLField('file','upload'))

you can do

   db.image.file.autodelete=True

and the linked file will be deleted when the records are deleted.

Massimo

On Apr 6, 2:19 pm, bsnipes <snipes.br...@gmail.com> wrote:
> What is the best way to unlink and remove from the db uploaded files/
> images from the uploads folder? I am basing an app on the layout of
> the images table from the web2py book. Is there a magic web2py
> function for this already?
>
> Thanks,
> Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to