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
oweijf
7 years agoHelpful | Level 5
Is it possible to rename a link to a file?
Is it possible to get a link/url to a file that contains the files ID-number instead of the name of the file? The reasons is that I dont want the link to break if I change the file name?
(This does...
- 7 years ago
Hey there oweijf - how are you today?
Shared links will not break when you rename a file now. They will only break if the file has been deleted from its Dropbox folder in which case, you'd be able to verify it (and restore it if needed) through your deleted files page.
Let me know if you need anything esle!
dcronin135
Helpful | Level 5
I have only found one way to maintain an existing link, when repurposing a filename for a website. There is a church video, where the media-team reuses the same filename for website streaming updates. However, I have found only one windows-command shell that maintains the file and the existing link when overlaying a new file over an existing shared-link file.
C:\Dropbox\Announcements>dir
Directory of C:\Dropbox\Announcements
01/18/2020 11:13 PM (456,211,222) morning news 1 18 20.mp4
01/04/2020 08:43 PM (237,487,207) morning news 1 5 20.mp4
01/18/2020 11:13 PM (237,487,207) news.mp4
3 File(s) 1,149,909,651 bytes
2 Dir(s) 420,034,039,808 bytes free
C:\Dropbox\Announcements>type "morning news 1 18 20.mp4" >news.mp4
Directory of C:\Dropbox\Announcements
01/18/2020 11:13 PM (456,211,222) morning news 1 18 20.mp4
01/04/2020 08:43 PM (237,487,207) morning news 1 5 20.mp4
01/19/2020 01:37 PM (456,211,222) news.mp4
3 File(s) 1,149,909,651 bytes
2 Dir(s) 418,930,028,544 bytes free
The type command using a redirect, seems to preserve the existing link, without destorying it, thus allowing the media team to repurpose the filename and existing link-share. I provided the code snippet using the html-video tag. Be sure the change the www to dl on the generated dropbox link reference.
<div style="text-align: center;">
<video autoplay="" controls="" disablepictureinpicture="" height="300" onended="videoEnded(this)" poster="https://some.url.toJPG" width="500">
<source src="https://dl.dropbox.com/s/y14mk4e4ls79hru/news.mp4?dl=0" type="video/mp4" />
</video>
</div>
<script type="text/javascript">
function videoEnded(video) {
video.autoplay=false;
video.load();
};
</script>
LubaMotos
5 years agoNew member | Level 2
Hi! I just wanted to thank dcronin135's answer. I was looking for a way to update files automatically by VBA code and keep the link and couldn't find any. I had to replace the file with the Dropbox link with a file from another folder. When I did it using the only Move/Copy file command that VBA has that I know ("FileSystemObject".CopyFile), after the destination got replaced it appeared to Dropbox as the original file was deleted and then a new one with the same name was added, so it deleted the Link. But this doesn't happen with the "type" cmd command that you discovered. GENIUS! That saved me LOTS OF HOURS and I think I would have never reached that solution. THANKS A LOT!!!
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!