do not include protocol and domain in upload url
This commit is contained in:
parent
a5c6c8db08
commit
9788c39cd8
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ def direct_upload(request):
|
||||||
file.uploading = True
|
file.uploading = True
|
||||||
file.save()
|
file.save()
|
||||||
Task.start(file.item, request.user)
|
Task.start(file.item, request.user)
|
||||||
upload_url = request.build_absolute_uri('/api/upload/direct/?id=%s' % file.oshash)
|
upload_url = '/api/upload/direct/?id=%s' % file.oshash
|
||||||
return render_to_json_response({
|
return render_to_json_response({
|
||||||
'uploadUrl': upload_url,
|
'uploadUrl': upload_url,
|
||||||
'url': request.build_absolute_uri(file.item.get_absolute_url()),
|
'url': request.build_absolute_uri(file.item.get_absolute_url()),
|
||||||
|
|
Loading…
Reference in a new issue