One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
tritnguyen
3 years agoExplorer | Level 3
Can I create a shared link for a file that containing virus?
I use the below code to create a shared link of my files. In case if the file containing virus, is the Dropbox API stop it or it is continue to create a share link for that file?
listSharedLinksResult = dbxClient.sharing()
.listSharedLinksBuilder()
.withPath(fileId)
.withDirectOnly(true)
.start();
fileUrl = listSharedLinksResult.getLinks().get(0).getUrl();
Thank you.
The listSharedLinks functionality does not create shared links; it only lists existing shared links.
The createSharedLinkWithSettings functionality can be used to create shared links. If the creation of a link for any particular account/file is not allowed, that will fail with ACCESS_DENIED.
- Greg-DB
Dropbox Staff
The listSharedLinks functionality does not create shared links; it only lists existing shared links.
The createSharedLinkWithSettings functionality can be used to create shared links. If the creation of a link for any particular account/file is not allowed, that will fail with ACCESS_DENIED.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 25 minutes 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!