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

Christian D.'s avatar
Christian D.
Explorer | Level 4
2 years ago

Link breaks on file update. How to avoid?

Sharing links to files that may be updated is an important functionality. There are several discussions on the subject (at least this one and this one). Unfortunately, the problem persists (and these discussions appear closed). 

 

Simple example. I create file a file public/report.pdf and share a dropbox link to it. In another folder, I continue working the "report" (e.g. private/report.pdf). When my private version reaches a new stable point when I am ready to update my readers, I go to the terminal and

 

% cp  private/report.pdf public/report.pdf

 

Unfortunately, this breaks the link although any normal user would expect it not to. Of course, I could go online and upload private/report.pdf in the public/ folder and the link would be preserved, but that's just painful.

 

My www.dropbox.com/events page shows that the file was deleted and added. Now you may blame the OS, but the truth is, dropbox should strive to work with the quirks of a not-so marginal OS like, say, macOS. It seems like an easy fix would be to preserve a cache of (path-to-file, link) mappings and, if a new file with the exact same path and name is created before a given mapping is cleared from the cache, assign it the existing link from the cache. 

 

That would solve it for at least me and the people in the discussions above. And frankly, I don't think you could find a user that'd be negatively surprised that deleting a file and recreating one with the exact same path and name did not break a shared link.

 

 

  • Megan's avatar
    Megan
    Icon for Dropbox Staff rankDropbox Staff

    Hi Christian D., how are you today?

     

    Your comments on shared links have been quite helpful, and I will do everything I can to ensure that your voice is heard.

     

    Before I do, allow me to ask: you mentioned that you keep working on the private report, after sharing the file. From the example you mentioned, it sounds like you have two files: one in a folder public/report.pdf and one private/report.pdf. Is that the case or you're talking about the same file?

     

    It's also interesting, that you use the terminal app, can you let me know more about that?

     

    If not, feel free to help me understand a bit more here. 

     

    Let me know more!

    • Christian D.'s avatar
      Christian D.
      Explorer | Level 4

      Hi Megan, 

       

      I am a tad puzzled by your reply. My post is clear. Yes there are two files, and any computer scientists knows what a terminal is. 

       

      Dropbox uses versioning I imagine? svn? git? Well, think of my example as a low-tech version of this. I have two copies of the same file, one that is in a state acceptable for public reading (in the "public" folder), one with internal comments (in the "private" folder), evolving towards the next public-ready and copied to the "public" folder when it is.

       

      I use the terminal because I am an old school computer scientist who thinks it's quite long to click all over the place to copy-paste files. Unix and Windows have similar applications, if I can even call them that.

       

      • Jay's avatar
        Jay
        Icon for Dropbox Staff rankDropbox Staff

        Hi Christian D., in general, it depends on how the OS performs the copy/paste function. If a file is dragged into the location in Explorer/Finder, it should technically overwrite the file and retain the shared link. However, this might not be case, as you've discovered when using the command line.

         

        The best way to ensure that the shared link isn't deleted would be to upload the file to the site in the same location, which would update the file online.

About Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

Need more support

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!