you only need to know it has a filename attribute (the name of the uploaded file) and a file attribute (an input stream you can read from. You can read more by googliing it in the python cgi module.
Massimo On Jan 22, 8:16 am, Markus Gritsch <m.grit...@gmail.com> wrote: > Hi, > > I use a > INPUT(_name='test', _type='file') > field in a FORM to upload a local file. The output of > print request.vars.test > is > FieldStorage('test', '<uploaded file name>', '<uploaded file content>' > > From the admin application I saw, that I can get to the file content using > request.vars.test.file.read() > > Can someone please explain what this FieldStorage is? The web2py book > only mentions FieldStorage on page 180 but does not explain its > members. I would like to understand this in more detail. > > 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 -~----------~----~----~----~------~----~------~--~---