Merge pull request #114 from joerick/fix-post

Fix bug with POST uploads returning 400 client error
This commit is contained in:
Steve Pulec 2014-03-26 10:29:17 -04:00
commit 7cf90edf0e

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)