Skip to content
Snippets Groups Projects
Commit efb2d400 authored by Kevin S. Hahn's avatar Kevin S. Hahn
Browse files

add TODO for parsing directly from request body

parent 16237558
No related branches found
No related tags found
No related merge requests found
...@@ -277,7 +277,10 @@ class Container(base.RequestHandler): ...@@ -277,7 +277,10 @@ class Container(base.RequestHandler):
required. Attachments really only need a 'kinds' and 'type'. We don't expect iteration over required. Attachments really only need a 'kinds' and 'type'. We don't expect iteration over
an attachment in a way that would require tracking 'state'. an attachment in a way that would require tracking 'state'.
""" """
# todo need write acess to add attachment # TODO read self.request.body, using '------WebKitFormBoundary' as divider
# first line is 'content-disposition' line, extract filename
# second line is content-type, determine how to write to a file, as bytes or as string
# third linedata_path = self.app.config['data_path'], just a separator, useless
data_path = self.app.config['data_path'] data_path = self.app.config['data_path']
quarantine_path = self.app.config['quarantine_path'] quarantine_path = self.app.config['quarantine_path']
_id = bson.ObjectId(cid) _id = bson.ObjectId(cid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment