> How does http upload work now in web.py?
> Looking at some of the older posts, it looked like
> web.context._inputfs would give you file-like objects.
> Now, context as changed to ctx and web.ctx doesn't have an _inputfs
> member.
I don't think it was ever like that.
If you just interested in contents of the file:
i = web.input()
do_something(i.f) # assuming name of the file input is f
If you are also interested in the file name:
i = web.input(f={})
do_something(i.f.filename, i.f.value)
Don't forget to specify enctype="multipart/form-data" attribute in
your form.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---