Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

mirage_alaas's avatar
mirage_alaas
Explorer | Level 4
6 years ago

View only no download for Audio File by api

I am working of Dropbox .NET API to access the files and create shareable links.

I want to share some audio clip to other people, and I want that other people can just able to listen to the file, they must be not able to download those file.

In Dropbox .NET API I am creating a sharable link but I am not getting an option to restrict to just listen not download (I am getting this option on UI website when I click on the sharing link).

So my question is How it can be possible that other people just listen to the file other people should not able to download the file by dropbox .NET API?

Please share some code to do it!! currently, I am creating the link by the following code

DropboxClientConfig config = new DropboxClientConfig();
config.UserAgent = "Name of App";
DropboxClient dpc = new DropboxClient("***********", config);
RequestedVisibility visibility = RequestedVisibility.TeamOnly.Instance;
SharedLinkSettings sharedLinkSettings = new SharedLinkSettings(visibility,null,null );
CreateSharedLinkWithSettingsArg createSharedLinkWithSettingsArg = new CreateSharedLinkWithSettingsArg("path to file", sharedLinkSettings);

 

Thanks 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,926 PostsLatest Activity: 3 days ago
337 Following

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!