Hello,

why this not work?

Model:

tb_prueba = db.define_table('prueba',
    Field('nombre'),
    Field('archivo','upload')
)

Controller (default):

def subirdoc():
    return dict()

def form_doc():
    return crud.create(tb_prueba)

View (default/subirdoc.html):

<h2>Form 1</h2>
{{=LOAD('default', 'form_doc', ajax=True, ajax_trap=True)}}

<h2>Form 2</h2>
{{=LOAD('default', 'form_doc', ajax=True, ajax_trap=True)}}

<h2>Form 3</h2>
{{=LOAD('default', 'form_doc', ajax=True, ajax_trap=True)}}

does not insert any records (idem for the 3 forms).

Where that leaves only one form, insert the record, but not upload the
file, only saves the field nombre

Jose


-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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