2

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.

2

There is no way to override that "feature" 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

enter image description here menu.

After the "Save File Location" dialog box, if the file exists, you will be prompted to Replace or Cancel.

enter image description here


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.

enter image description here

  • This does not work on Draw.io when I try to export the image since it is a button which I need to click on. Also, is there a way to do this automatically? – iProgram Mar 5 '17 at 12:30
  • 1
    Holding Control while you click on the button should open the "Save As dialog" If they file exists, it will bring up a confirmation dialog – Allan Mar 5 '17 at 14:10
  • This doesn't work where: 1. There is no file linked; 2. The download is initiated by Javascript (Gmail for example). – certainlyakey May 1 '17 at 10:36
  • @certainlyakey - Of course it won't work in those scenarios - if no file is linked how can you down load anything to begin with and Javascript initiates the download, and is not the download itself. – Allan May 1 '17 at 11:49
  • Holding the option only partly works. It does prompt Safari to whether I want to replace the file but it doesn't. It saves the file using the same name with a numeric suffix. – Cainneach Jan 19 '18 at 22:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .