Merge pull request #114 from joerick/fix-post
Fix bug with POST uploads returning 400 client error
This commit is contained in:
commit
7cf90edf0e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user