Here is an example of how to get the path of the photo which has just been taken:
function get_photo_path(data) {
var photo_path = data;
return photo_path;
}
function take_photo() {
navigator.camera.getPicture(get_photo_path, fail, {quality : 50});
}
Or refer to this: https://stackoverflow.com/a/22156185/3381794