How to download file under same filename? I have DropBox enabled on my Mac running Sierra and I have changed my Safari download location to the Downloads folder I created in my DropBox folder.

Whenever I download a file under the same name, Safari downloads it as 'name.extension', 'name-1.extension', 'name-2.extension' etc. Is there a way how I can prevent safari from doing this? When I download a file with the same filename, it is normally because it is an updated version from stuff that I make. Since DropBox allows you to revert to the previous version, it does not matter if I accidently  write to the same name since I will be able to restore it.
There is no way to override that &quot;feature&quot; permanently.  However, there are a couple of workarounds:
Hold the Option Key
Hold down the Option key when you click on the link and it will tell Safari to overwrite the file if it already exists.
I just tested it on Safari 10.10.3 and it works as expected.

Use Download Linked File As...
You can also specify interactively if you want to overwrite the file using the Download Linked File As... option.
Click on the link while holding the Control key (or right click) and you will be presented with a context
 menu.
After the &quot;Save File Location&quot; dialog box, if the file exists, you will be prompted to Replace or Cancel.


Set Safari to alway ask where to save downloads
This is done in Safari Preferences (⌘, while in Safari).  With this set as Ask for each download. if the file you are attempting to save already exists, you will be presented with a confirmation dialog as above.