Skip to content

Commit

Permalink
review for 0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-Amart authored and anandology committed Jan 5, 2011
1 parent 004962e commit 7161e6b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cookbook/fileupload.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ File uploads can be a little tricky if you're not familiar with form uploads, or
x = web.input(myfile={}) x = web.input(myfile={})
web.debug(x['myfile'].value) # This is the file contents web.debug(x['myfile'].value) # This is the file contents
web.debug(x['myfile'].filename) # This is the filename web.debug(x['myfile'].filename) # This is the filename
web.redirect('/upload') raise web.seeother('/upload')




app = web.application(urls, globals())

if __name__ == "__main__": if __name__ == "__main__":
app.run() web.run(urls, globals())


## Hang ups ## Hang ups


Expand Down

0 comments on commit 7161e6b

Please sign in to comment.