cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem of getting full folder path from the shared dropbox link

Problem of getting full folder path from the shared dropbox link

Manfred Jeske
Explorer | Level 3

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

Re: Problem of getting full folder path from the shared dropbox link

Greg-DB
Dropboxer

This seems to be a duplicate of this thread. Please refer to that for more information.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?