in db.py
db.define_table("profile_picture",
                Field('filename','upload',default = None,comment='Enter 
your pic',uploadfolder=os.path.join(request.folder, 
'uploads')),auth.signature)



in default.py
 
form=SQLFORM.factory(Field('filename','upload',uploadfolder=os.path.join(request.folder,
 
'uploads'))).process()
    
    if form.accepted:
        db.profile_picture.insert(filename=request.vars.filename?)


form.vars.filename is empty
request.vars doesn't have the file. 

My output. 

form.vars
<Storage {'filename': ''}>


request.vars
<Storage {'_formkey': '762ae730-96cd-48e4-a7f0-fe934943e90d', '_formname': 
'no_table/create'}>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to