Maybe you could try autodelete :
http://web2py.com/book/default/chapter/07?search=upload+#autodelete

<http://web2py.com/book/default/chapter/07?search=upload+#autodelete>Really
not sure it will work, but you could try... But if your record is deleted
you file will be deleted too no matter if it is referenced by an other
record.

http://web2py.com/book/default/chapter/07?search=upload+#autodelete

Richard

On Mon, Jun 6, 2011 at 12:13 PM, Luis Goncalves <lgoncal...@gmail.com>wrote:

> Thanks for the reply!
>
> I tried that, but it didn't do what I want.
>
> I wasn't very clear in explaining what I'm trying to do (sorry about
> that!).  I have a file upload field in my SQLFORM, and it has a "choose
> file" button, and right next to it a [file| (chk-box) delete]  element..  I
> want to get rid of that element with the checkbox so that you can't delete
> the file.
>
> Maybe that's not possible easily? It's part of the 'upload' field type?
>
> Thanks!!
> Luis.
>

Reply via email to