save-in icon indicating copy to clipboard operation
save-in copied to clipboard

Feature request: Overwrite or Rename if file already exists

Open grinch843 opened this issue 7 years ago • 6 comments

Can an option be added that if a file already exists you will get a pop-up asking to overwrite or rename the file instead of automatically renaming the file?

grinch843 avatar Nov 14 '17 20:11 grinch843

I'd like to extend this request to be Overwrite, Rename, Save As Dialog, Cancel

MightyDrakeC avatar Nov 15 '17 12:11 MightyDrakeC

Chrome supports it, but Firefox does not right now according to the support table on MDN.

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/downloads/FilenameConflictAction

gyng avatar Nov 17 '17 16:11 gyng

Hey, it's been a year and a half and it still saves duplicates. Is this problem still impossible to solve? I would very much like to be able to skip duplicate files or at least get a prompt if the file exists already.

Zwizzor avatar May 11 '19 12:05 Zwizzor

@Zwizzor unfortunately, Firefox still does not support this. Please follow https://github.com/gyng/save-in/issues/94 for any updates.

gyng avatar May 21 '19 07:05 gyng

@Zwizzor

In case it's still relevant for you or anyone else finding this issue, I finally got fed up and made a simple extension to listen for download events and automatically cancel ones that look like renamed duplicates (blah(1).txt for example.)

This seems to work well with the Save In addon. Note that if you have "show save dialog on failure" enabled, cancelled downloads will count as a failure and trigger this.

Repo: https://github.com/KerfuffleV2/webextension-cancel-duplicate-downloads/ AMO: https://addons.mozilla.org/en-US/firefox/addon/cancel-duplicate-downloads/

KerfuffleV2 avatar Feb 14 '22 08:02 KerfuffleV2

@KerfuffleV2 thanks for this!

gyng avatar Feb 14 '22 09:02 gyng