Fix CORS s3 upload.
This commit is contained in:
parent
c276bce177
commit
b1a5b9c343
3 changed files with 20 additions and 20 deletions
|
@ -398,8 +398,8 @@ def get_repo_builds(namespace, repository):
|
|||
|
||||
@app.route('/api/filedrop/', methods=['POST'])
|
||||
def get_filedrop_url():
|
||||
mimeType = request.get_json()['mimeType']
|
||||
(url, file_id) = user_files.prepare_for_drop(mimeType)
|
||||
mime_type = request.get_json()['mimeType']
|
||||
(url, file_id) = user_files.prepare_for_drop(mime_type)
|
||||
return jsonify({
|
||||
'url': url,
|
||||
'file_id': file_id
|
||||
|
|
Reference in a new issue