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

tritnguyen's avatar
tritnguyen
Explorer | Level 3
3 years ago

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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 9 hours ago
325 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!