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

babydream's avatar
babydream
Helpful | Level 6
2 years ago

not able to either create or list a share link after a copy of a file

Hello, Overall objective: Once I copy a file from a user's folder to our Production folder, I try to create a shared link for it and it fails;  or I try to list the shared link and it fails.  By ...
  • Greg-DB's avatar
    2 years ago

    babydream As Здравко said, the code you shared here doesn't show an attempt to create a shared link. Files don't have shared links by default, so sharing_list_shared_links won't list a shared link for a file before one is created. Also, when copying a file, such as using files_copy_v2, a shared link on the original file does not get copied to the new copy of the file.

     

    You can create a shared link using sharing_create_shared_link_with_settings. If that call isn't working as expected, please share the relevant code and error/output.