]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
switch from FieldStorage.value to FieldStorage.file
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 25 May 2007 23:00:19 +0000 (16:00 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 25 May 2007 23:00:19 +0000 (16:00 -0700)
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

index f03b01736d5749c64c1b6fca3e5865cc64e1f23d..794a6b766ba7594216c18b54d126b60a24b91b59 100644 (file)
@@ -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))