I am uploading an image to dropbox shared folder link, so I need full path of this shared dropbox link to upload image to that specific folder. I passed url of the shared folder link to sharing/get_shared_link_metadata but I didn't get path as response. This is the authenticated user account. So, why I didn't get path as response.
dbx.sharingGetSharedLinkMetadata({url: <shared_folder_link>})
.then(function(response) {
console.log(response);
var pathname = response.result.path_lower;
dbx.filesUpload({path: pathname+"/image.png", contents: data})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.error(error);
});
})
.catch(function(error) {
console.error(error);
});