Done!
Thank u

2014-11-12 17:54 GMT+00:00 Leonel Câmara <leonelcam...@gmail.com>:

> Yes, yes it is. That's what forms do anyway. In fact you can use SQLFORM
> to do this if you want.
>
> Here's an example solution not using forms, say your file goes in var
> upload
>
> def post_file():
>     """ Controller to post files """
>     if 'upload' in request.vars:
>         db.myfile.insert(name=request.vars.upload.filename,
> cloudfile=db.myfile.cloudfile.store(request.vars.upload))
>
> If you don't have a filename just make something up, put it in another
> var, or just don't store it.
>
>  --
> 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 web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to