return id in response, fixes #2058
This commit is contained in:
parent
f8bb2c3efd
commit
a2e23739b8
1 changed files with 2 additions and 0 deletions
|
@ -327,6 +327,8 @@ def upload(request):
|
|||
if file.editable(request.user):
|
||||
response = process_chunk(request, file.save_chunk)
|
||||
response['resultUrl'] = request.build_absolute_uri(file.get_absolute_url())
|
||||
# id is used to select document in dialog after upload
|
||||
response['id'] = file.get_id()
|
||||
return render_to_json_response(response)
|
||||
#init upload
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue