Commit b8bc1d01 by Chris Dodge

remove redudent asset_url return value when uploading files

parent 3dbe4c18
...@@ -194,7 +194,6 @@ def upload_asset(request, org, course, coursename): ...@@ -194,7 +194,6 @@ def upload_asset(request, org, course, coursename):
} }
response = JsonResponse(response_payload) response = JsonResponse(response_payload)
response['asset_url'] = StaticContent.get_static_path_from_location(content.location)
return response return response
......
...@@ -96,7 +96,7 @@ function displayFinishedUpload(xhr) { ...@@ -96,7 +96,7 @@ function displayFinishedUpload(xhr) {
} }
var resp = JSON.parse(xhr.responseText); var resp = JSON.parse(xhr.responseText);
$('.upload-modal .embeddable-xml-input').val(xhr.getResponseHeader('asset_url')); $('.upload-modal .embeddable-xml-input').val(resp.portable_url);
$('.upload-modal .embeddable').show(); $('.upload-modal .embeddable').show();
$('.upload-modal .file-name').hide(); $('.upload-modal .file-name').hide();
$('.upload-modal .progress-fill').html(resp.msg); $('.upload-modal .progress-fill').html(resp.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment