From a2e23739b8547babb55d9596f4a76d6b28c796d9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 14 Feb 2015 18:29:58 +0000 Subject: [PATCH] return id in response, fixes #2058 --- pandora/document/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/document/views.py b/pandora/document/views.py index 485418e87..134b401c6 100644 --- a/pandora/document/views.py +++ b/pandora/document/views.py @@ -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: