From 04b649f97127b9ce596c861c7ac8e4da91029448 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 25 May 2007 16:00:19 -0700 Subject: [PATCH] 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! --- src/allmydata/webish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.45.2