From 157c4f2755b814c465e688574a32b4f4112f4c12 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 14 Feb 2014 13:36:11 +0000 Subject: [PATCH] try to parse response as json after chunkupload --- static/js/chunkupload.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/chunkupload.js b/static/js/chunkupload.js index 822d965e..91e836e2 100644 --- a/static/js/chunkupload.js +++ b/static/js/chunkupload.js @@ -41,9 +41,14 @@ pandora.chunkupload = function(options) { initUpload(); function done() { + var response; + try { + response = JSON.parse(that.responseText); + } catch(e) {} that.triggerEvent('done', { status: that.status, progress: that.progress, + response: response, responseText: that.responseText }); }