You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
jay-8
9 months agoExplorer | Level 3
Upload fails when initiated from a C# webAPI (only)
I am able to upload files all day long using the following code, so I know it works. try
{
var uploaded = await dbx.Files.UploadAsync(
...
jay-8
Explorer | Level 3
No. Are there any examples of that anywhere?
Is this still a thing??? It would be helpful. Can't find anything like this now:
https://dropbox.tech/developers/debug-your-dropbox-app-with-app-error-logs
I did finally get something to work. The working code on a web form could start out as a void or async void and worked (The onclick event on a web form can't return anything, so it has to be a void). However, pretty much the same code on a webAPI would not work. I had to make the webAPI async and return a task. Then I had to await the call to the dropbox code. This actually got a file from the server into Dropbox.
Part of the deal here is that I don't need to actually return anything in this. Since it worked when a user was pressing a button, it seemed like it should work when called from the webAPI. That apparently wasn't the case.
And that was compounded by not getting any errors anywhere in the process. Everything seemed to work all the way up to the await dbx.Files.UploadAsync(...
Greg-DB
9 months agoDropbox Staff
jay-8 Dropbox no longer provides error logs like that for the API. We recommend debugging issues like this locally.
Anyway, we can't provide support for third party platforms themselves, so I can't say what may be different about your different environments, but as Здравко said, every Dropbox API call should either return a result or raise an exception. If you're having trouble catching or handling the result/exception programmatically, I suggest stepping through with a debugger to see what is happening first.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 9 hours agoIf 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!