This should do it.

db.define_table('mytable', Field('picture','upload'))

db.mytable.picture.default=lambda:db.mytable.picture.store(open('path/
pic.jpg','rb'))


On Nov 6, 1:32 am, CesarBustios <[email protected]> wrote:
> Hi, please in my database i have an 'upload' type Field and i want to
> make some picture ('pic.jpg') the default picture when the form load,
> how can i do that???
>
> I really hope you can help me out, Thank you!

Reply via email to