If you make a form with FROM(...INPUT(....)) the form has not
knowledge of DB and form.accepts will not perform any db-io BUT you
can do

form=FORM(INPUT(_name='image',_id='image', _type='file'),...)
if form.accepts(....):
   db.mytable.insert(image=db.mytable.image.store(request.vars.image))


On Dec 25, 11:29 am, "Arun K.Rajeevan" <the1.a...@gmail.com> wrote:
> Assume I have a table with so many columns and one of those is an upload
> field.
> Field('image', 'upload')
>
> Then, I build a Form using FORM that has an item called INPUT(_name='image',
> _id='image', _type='file')
>
> Now, tell me how on earth I can correctly upload  file into DB in
> form.onaccepts()
>
> I'm trying many thing, but in vein. :-(
> Please, show me some light

Reply via email to