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

fix imports for targetted multipart upload

parent 1173e88b
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ import datetime
import jsonschema
import bson.json_util
import tempdir as tempfile
import base
import util
import users
......@@ -232,7 +234,7 @@ class Container(base.RequestHandler):
pass
else: # targeted upload
pass
if self.request.content_type != 'multipart/form-data':
if self.request.content_type != 'multipart/form-data': # do not accept the OTHER sort of multipart
self.abort(400, 'content-type must be "multipart/form-data"')
try:
metadata = json.loads(self.request.get('metadata'))
......
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