From: Zooko O'Whielacronx Date: Fri, 25 May 2007 23:00:19 +0000 (-0700) Subject: switch from FieldStorage.value to FieldStorage.file X-Git-Tag: allmydata-tahoe-0.3.0~48 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/htmlfontify-example.html?a=commitdiff_plain;h=04b649f97127b9ce596c861c7ac8e4da91029448;p=tahoe-lafs%2Ftahoe-lafs.git switch from FieldStorage.value to FieldStorage.file Unfortunately this doesn't make the O(n) memory usage go away. It might reduce the constants -- I'm not sure. I look forward to enhancement #54 -- memory usage tests! --- diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index f03b0173..794a6b76 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -197,7 +197,7 @@ class Directory(rend.Page): log.msg("starting webish upload") uploader = get_uploader_service(ctx) - d = uploader.upload(upload.Data(contents.value)) + d = uploader.upload(upload.FileHandle(contents.file)) name = contents.filename if privateupload: d.addCallback(lambda vid: self.uploadprivate(name, vid))