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

Forum Discussion

attilagal's avatar
attilagal
Explorer | Level 3
9 years ago
Solved

problem initializing DropboxClient instance

Hi all,

 

I could achieve file upload from Web API. I get the posted file, and I could upload it to dropbox and get shared URL of the upped file.

However, deploying the app to Azure, I get an exception when creating the DropboxClient object, and all information is: 

 

ErrorMessage: "shared_link_access_denied/"

ErrorResponse is a SharedLinkError.SharedLinkAccessDenied

Code is:

 

                    try
                    {
                        dropBoxClient = new DropboxClient(s, new DropboxClientConfig("Forecast5"));
                        remoteFilePath = String.Format("{0}/logo.jpg", formData["id"]);
                        var result = await dropBoxClient.Files.UploadAsync(remoteFilePath, WriteMode.Overwrite.Instance, body: fileStream);
                    }

 

No idea and what to try. Anyone with a suggestion or idea?

 

Thanks in advance!!

2 Replies

Replies have been turned off for this discussion
  • attilagal's avatar
    attilagal
    Explorer | Level 3
    9 years ago

    Fuh, you were right!

    Due to a bad error handling and awful debugging experience, it was really because of accessing a wrong url as shared link.

    Thank you very much!!!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from 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!