Fix bug with POST uploads returning 400 client error
This commit is contained in:
parent
140f1c2000
commit
73602958ed
@ -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