Fix bug with POST uploads returning 400 client error

This commit is contained in:
Joe Rickerby 2014-03-26 13:53:14 +00:00
parent 140f1c2000
commit 73602958ed

View File

@ -100,7 +100,10 @@ class ResponseObject(object):
form[k] = v
key = form['key']
f = form['file']
if 'file' in form:
f = form['file']
else:
f = request.files['file'].stream.read()
new_key = self.backend.set_key(bucket_name, key, f)