May be it is your browser's cache?

On Fri, Sep 30, 2011 at 8:34 PM, Carlos <[email protected]> wrote:

> Hi,
>
> Not sure if I'm doing something wrong, but uploaded files are not showing
> correctly immediately after an update submit.
>
> For reference (assuming there's already a row with id 1):
>
> *model*
>     db.define_table('test', Field('name'), Field('image', 'upload'))
>
> *controller*
>     form = SQLFORM(db.test, db.test(1), upload=URL('download'))
>     form.accepts(request)
>     return dict(a=form)
>
> When I submit the above form with a different image, the previous image is
> shown (instead of the last submitted one).
>
> Other fields (e.g. 'name') do show the latest data correctly.
>
> I'm using latest web2py trunk on win 7.
>
> Thanks,
>
>    Carlos
>
>


-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Reply via email to