do not include protocol and domain in upload url

This commit is contained in:
j 2016-10-27 12:45:40 +02:00
parent a5c6c8db08
commit 9788c39cd8

View file

@ -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()),