Description
When opening the preview modal for a PDF (or image) attachment, Chrome/Edge silently download the file with the blob's UUID as filename (no extension) instead of rendering it inline. Affects both desktop and Android. Root cause is twofold: Stalwart's /download endpoint can return Content-Type: application/octet-stream even when the attachment declared application/pdf, so the blob URL serves with the wrong MIME and falls back to download. Additionally, is historically unreliable for inline PDF rendering across Chromium browsers — <iframe src> is far more consistent.
Fix: dealerweb/bulwark-webmail@3bdb6ed
Steps to Reproduce
- Send yourself an email with a PDF attachment from any common mail client (Outlook, Apple Mail, Thunderbird).
- Settings → set "Default attachment action" to "Preview".
- Open the email, click the eye/preview icon on the PDF.
- Observe the browser's download manager.
Expected Behavior
The PDF renders inline in the preview modal.
Actual Behavior
The modal opens briefly (or appears empty), and the browser silently downloads the blob to disk with the blob UUID as filename (e.g. e2ac209d-757c-48b8-91b8-eec66b0f52e1) and no file extension. The user has no way to identify what was downloaded.
Bulwark Version
1.7.1
Stalwart Mail Server Version
0.16.6
Browser
No response
Operating System
None
Screenshots / Screen Recording
No response
Relevant Logs or Error Output
Additional Context
No response
Description
When opening the preview modal for a PDF (or image) attachment, Chrome/Edge silently download the file with the blob's UUID as filename (no extension) instead of rendering it inline. Affects both desktop and Android. Root cause is twofold: Stalwart's /download endpoint can return Content-Type: application/octet-stream even when the attachment declared application/pdf, so the blob URL serves with the wrong MIME and falls back to download. Additionally, is historically unreliable for inline PDF rendering across Chromium browsers — <iframe src> is far more consistent.
Fix: dealerweb/bulwark-webmail@3bdb6ed
Steps to Reproduce
Expected Behavior
The PDF renders inline in the preview modal.
Actual Behavior
The modal opens briefly (or appears empty), and the browser silently downloads the blob to disk with the blob UUID as filename (e.g. e2ac209d-757c-48b8-91b8-eec66b0f52e1) and no file extension. The user has no way to identify what was downloaded.
Bulwark Version
1.7.1
Stalwart Mail Server Version
0.16.6
Browser
No response
Operating System
None
Screenshots / Screen Recording
No response
Relevant Logs or Error Output
Additional Context
No response