If you want to program at low level uploaded files are in 
request.post_vars.<fieldname> and they are cgi.FieldStorage objects 
(standard python class for uploads). 

def index():
     if request.post_vars:
          pic_filename = request.post_vars.picture.filename
          pic_bytes = request.post_vars.picture.file.read()
          # do something....
     return dict(form = 
SQLFORM.factory(Field('picture','upload')).process())





On Wednesday, 27 July 2016 01:56:32 UTC-5, Krzysztof Jeleń wrote:
>
> Hi
>
> How handle file upload in web2py. In PHP there were _FILES variable, I 
> can't find how it is handled in web2py
>
> --
>   KJ
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to