Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

review for 0.23

  • Loading branch information...
commit 7161e6bd60b3bde6a45d1fd3eca870720d2fb59d 1 parent 004962e
Val-Amart authored anandology committed
Showing with 4 additions and 6 deletions.
  1. +4 −6 cookbook/fileupload.md
10 cookbook/fileupload.md
View
@@ -29,13 +29,11 @@ File uploads can be a little tricky if you're not familiar with form uploads, or
x = web.input(myfile={})
web.debug(x['myfile'].value) # This is the file contents
web.debug(x['myfile'].filename) # This is the filename
- web.redirect('/upload')
-
-
- app = web.application(urls, globals())
-
+ raise web.seeother('/upload')
+
+
if __name__ == "__main__":
- app.run()
+ web.run(urls, globals())
## Hang ups
Please sign in to comment.
Something went wrong with that request. Please try again.