Webmail downloading attachment's twice
Problem reported by Heimir Eidskrem - 6/17/2026 at 6:33 AM
Being Fixed
Webmail issue with 9652.
Client reported that when they click on an attachment to download, its downloading it twice.
I tried it and I can reproduce it. 

Anyone else with the same issue or is this unique for us?



Andrew Barker Replied
Employee Post
As noted in the SmarterMail 9651? thread, we are aware of this bug and it is currently with the development team. We will follow up again here once a fix is available.

Andrew Barker
Lead Software Developer
SmarterTools Inc.
www.smartertools.com 

Heimir Eidskrem Replied
@Andrew Barker
Thanks, I appreciate the quick update.  


JerseyConnect Team Replied
We got tired of the tickets we're getting about this so we patched it ourselves. Edit the file \SmarterTools\SmarterMail\Service\Interface\app\email\modals\attachments.dlg.html, search for this line:
<a ng-click="downloadAttachment(item)" ng-href="{{item.link}}" class="popupEmailAttachment" download="{{item.filename}}" title="{{item.filename}}" layout="row" flex>
and change it to:
<a ng-href="{{item.link}}" class="popupEmailAttachment" download="{{item.filename}}" title="{{item.filename}}" layout="row" flex>
Heimir Eidskrem Replied
@JerseyConnect Team 
I changed that one line and it seems to have corrected the issue.
Thanks

Chris Replied
I asked CLAUDE AI and here is its response. (Use at your own risk)

ME: Looking at the release notes for 9652. Fixed: An issue where some attachments are missing "Save link as" option in the context menu.  ** they likely broke it trying to fix this. In Smartermail there is no download usage tracking.

CLAUDE: That confirms it perfectly. The "Save link as" fix almost certainly involved adding ng-click="downloadAttachment(item)" to programmatically handle the download, but doing so caused the browser's native anchor behavior (ng-href + download attribute) to also fire — resulting in the double download.

Removing ng-click reverts that unintended side effect while keeping the anchor's native download behavior, which already handles "Save link as" correctly anyway since the download attribute is still there.

The community fix is solid. Apply it with confidence.
Sébastien Riccio Replied
/code-review
Sébastien Riccio
System & Network Admin

Stefan Mössner Replied
@JerseyConnect Team

Thank you for this fix which is working great.

Reply to Thread

Enter the verification text