I am trying to upload the image to the dropbox shared link using the URL but I did not get the path of this shared link. I'm using the below code to get the metadata of the shared folder link but I did not get a path_lower in response.
dbx.sharingGetSharedLinkMetadata({url: req.body.reference})
.then(function(response) {
console.log(response);
var pathname = response.result.path_lower;
dbx.filesUpload({path: "/"+pathname, contents: data})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.error(error);
});
})
.catch(function(error) {
console.error(error);
});I appreciate your help. Thank You.