diff --git a/static/js/chunkupload.js b/static/js/chunkupload.js index 822d965e3..91e836e25 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 }); }