Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

JagsDew's avatar
JagsDew
Explorer | Level 3
6 years ago

Problem of uploading image to dropbox shared link using url

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.

11 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    We responded to that ticket on Wednesday. Please check the email inbox for the email address on the account used to open that ticket for the response. If you don't see it, please check the spam folder too.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!