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 }); }