Forum Discussion

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

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.