Image-upload response


#1

Im using this code for uploading images:

how can i read the response from server?
i also checked task’s complete event:

task.on("complete", logEvent);

function logEvent(e) {
    console.log(JSON.stringify(e));        
}

and this is the output:

{“eventName”:“complete”,“object”:{"_observers":{“complete”:[{}],“propertyChange”:[{}]},"_session":{"_id":“image-upload”},"_id":“image-upload{1}”,"_description":"{ ‘uploading’: Test0.png }","_upload":3807297,"_totalUpload":3807297,"_status":“complete”},“response”:{}}

as you can see response is null.