We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
JMagnat
9 years agoExplorer | Level 3
Migration V1 to V2
Hi, in V1 I simply use: Public Function write(myFile As String) As MetaData
Dim Client As DropNetClient = New DropNetClient(Konstanten.DropboxAppKey, Konstanten.DropboxApp...
JMagnat
9 years agoExplorer | Level 3
Of course I step through the code. I do the call to UploadAsync and my dropbox shows me that the uploaded file is arrived.
But the call is never come back to the app.
In the webbrowsers Navigating-event I call my write method like
If bindDropbox.write(bindDropbox.BackupDestination) Is Nothing Then
MessageBox.Show("ERROR")
End If
bindDropbox is a seperate class and the write method is this
Public Shared Async Function write(myFile As String) As System.Threading.Tasks.Task(Of Files.FileMetadata)
Try
Dim myReturn As Files.FileMetadata = Await bindDropbox.Client.Files.UploadAsync("/Backups/" + bindDropbox.Filename, WriteMode.Overwrite.Instance, body:=New MemoryStream(File.ReadAllBytes(myFile)))
Return myReturn
Catch ex As Exception
Return Nothing
End Try
End Function
I have really no idea why UploadAsync isnt coming back.
Greg-DB
Dropbox Community Moderator
9 years agoI unfortunately can't seem to reproduce this behavior. Can you share a small sample project that reproduces this? Thanks in advance!
- JMagnat9 years agoExplorer | Level 3
I built a demo version and... I solved it. :grinning:
I blocked the task with another running task in it.
Now it works. Thanks for the help.
About 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!