Thank you Timothy and Massimo.

One final question: When not selecting a file to upload and just
submitting the form,
  request.vars.test
is equal to an empty string, and request.vars.test.file fails with an
  AttributeError: 'str' object has no attribute 'file'

Why is request.vars.test in this case a string and not a FieldStorage
with an empty filename?

Kind regards,
Markus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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