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!
This commit is contained in:
Zooko O'Whielacronx 2007-05-25 16:00:19 -07:00
parent 763cfc7874
commit 04b649f971
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Directory(rend.Page):
log.msg("starting webish upload") log.msg("starting webish upload")
uploader = get_uploader_service(ctx) uploader = get_uploader_service(ctx)
d = uploader.upload(upload.Data(contents.value)) d = uploader.upload(upload.FileHandle(contents.file))
name = contents.filename name = contents.filename
if privateupload: if privateupload:
d.addCallback(lambda vid: self.uploadprivate(name, vid)) d.addCallback(lambda vid: self.uploadprivate(name, vid))