To replace a file without changing the link on Dropbox, you can go through the above-mentioned steps. In simple words, you need to rename the existing or already uploaded file to the same as the old one. Otherwise, a new unique ID will be created automatically to mess things up.