Adding some clarification to the file upload docs, at Ryan's request.

This commit is contained in:
Jonathan LaCour
2013-08-12 09:44:32 -07:00
parent 2a2b50ff01
commit 26041f0ebd

View File

@@ -352,6 +352,7 @@ application's controller:
class RootController(object):
@expose()
def upload(self):
assert isinstance(request.POST['file'], cgi.FieldStorage)
data = request.POST['file'].file.read()
Helper Functions