Forum Discussion

Manfred Jeske's avatar
Manfred Jeske
Explorer | Level 3
5 years ago

Problem of getting full folder path from the shared dropbox link

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 11 hours ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!