hello,

on page 198 of the manual there is an example to set the filename of
the uploaded file.

It uses "if request.vars.image", but I found that this statement is
never True, with or without an uploaded file.
Using "if 'image' in request.vars" is also no good because it will
still be True when no file is uploaded.

Can anyone else confirm whether this is broken?


My current work around is:
try:
    request.vars.filename = request.vars.image.filename
except AttributeError:
    pass

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