db.define_table('test_pic',
Field('picture', 'upload')
)
def reupload_pic():
form = SQLFORM(db.test_pic, 1, upload=URL(r=request,
f='download'))
if form.accepts(request.vars, session):
response.flash = 'ok'
return dict(form=form)
I specify parameter 'upload' to show submited picture.
record 1 is a girl's picture.
when visit reupload_pic, webpage shows picture correctly, it is a
girl's picture. however, if I change it to a boy's picture and submit
the form, picture shown dosen't change, it is still the girl's
picture . when visit the url again, it is ok.
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en