One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
solsupp
7 years agoExplorer | Level 3
Folders
I am surrently using:
Private Shared Sub FileUploadToDropbox(ByVal filePath As String, ByVal fileName As String, ByVal fileSource As String)
Dim dbx = New DropboxClient("<REDACTED>")
Dim fs = New FileStream(fileSource, FileMode.Open, FileAccess.Read)
Dim updated = dbx.Files.UploadAsync((filePath + ("/" + fileName)), WriteMode.Overwrite.Instance, body:=fs)
End Sub
To upload a folder and file.
How can I then share this folder with a specific email addres, I wish to then notifiy that email address that a share has been created for them.
- Greg-DB
Dropbox Staff
To share a folder with a specific Dropbox account using the .NET SDK, you should use ShareFolder to share the folder (once per folder), and then AddFolderMember to invite member(s) to the folder.
By the way, I redacted it from your post, but for the sake of security, you should disable the access token that you posted. You can do so by revoking access to the app entirely, if the access token is for your account, here, or, you can disable just this access token using the API, e.g., using TokenRevoke.
- solsuppExplorer | Level 3
How do I add a member
members As IEnumerable(Of AddMember),
- Greg-DB
Dropbox Staff
That would look something like this:
var members = new[] { new AddMember(new MemberSelector.Email("email@example.com")) }; await this.client.Sharing.AddFolderMemberAsync(sharedFolderId, members);
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 16 hours ago
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 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!