I am using the standard recipe for large file uploads.
class Update:
def POST(self, name=''):
params = web.input(filedata={})
...
The call web.input(filedata={}) seems to instantiate a dictionary with the
contents of the file from the multipart POST.
I am running on an embedded system and do not have adequate memory or swap
area to load the file in memory
The operation breaks with a pipe error on the lighttpd side.
Is there any way to force the call to not load all the data.
It seems to be read from a file descriptor on the storage operation.
with open(update_path, 'wb') as fp:
fp.write(params.filedata.file.read())
Thanks
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.