GNOME Bugzilla – Bug 522230
Misbehaviour when downloading the same file twice
Last modified: 2011-04-01 17:12:11 UTC
When someone clicks two times on the same file, it is downloaded twice, with a different name (ephy appends a '(1)' to the file name). This is annoying because you can quickly have ten copies of the same file hanging around ('cause you're downloading a PDF from an intranet or something like that). I think epiphany should *not* create a new file name when the downloaded file has already been downloaded. I know you can't know before having downloaded the file, but you could do something similar by removing the '(1)' file and opening the old one when the md5sums matches, or something like that, as a workaround.
Which distro/backend? This bug contradicts bug 171116. See also bug 307210.
The problem is that the path is build before the file is downloaded, we can't know the md5sum of the file being downloaded before it is downloaded. So we would need to download to /tmp/, md5sum and move the file to the new location with -%d appended to the name or open the already existing file. We would always download the file twice, I don't know what could we do, suggestions? The /tmp thing would face the problem that it can run out of space or we can use something like a .tmp extension, the later would be preferable I think.
Overdoing it, IMHO, I rather have duplicates in the downloads dir than misteriously showing the same file when downloading two different things.