Skip to content
Browse files

edit

  • Loading branch information...
1 parent 79ca23e commit 11e2d0980d4c3da8f888ecd21e16949f44b024fb Andrei Savu committed with anandology Mar 27, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 cookbook/fileupload.md
View
3 cookbook/fileupload.md
@@ -27,8 +27,9 @@ File uploads can be a little tricky if you're not familiar with form uploads, or
def POST(self):
x = web.input(myfile={})
- web.debug(x['myfile'].value) # This is the file contents
web.debug(x['myfile'].filename) # This is the filename
+ web.debug(x['myfile'].value) # This is the file contents
+ web.debug(x['myfile'].file.read()) # Or use a file(-like) object
raise web.seeother('/upload')

0 comments on commit 11e2d09

Please sign in to comment.
Something went wrong with that request. Please try again.