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:
parent
763cfc7874
commit
04b649f971
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue