PDF attachments cannot be displayed if MIME is application/octet-stream
Open
Nobody has claimed this yet.
1. to develop
bug
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Receiving an email with a PDF attachment whose file extension is in uppercase (*.PDF)
- Try to open the attachment : Nothing happens
This behavior occurs from the message list or the message view.
No problem with lowercase file extensions (*.pdf).
Expected behavior
The PDF file should open.
Actual behavior
See above steps to reproduce.
Mail app version
5.7.15
Nextcloud version
33.0.3
Mailserver or service
Mailo
Operating system
Linux 6.12.86+deb13-cloud-amd64 x86_64
PHP engine version
PHP 8.3
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
PostgreSQL
Additional info
Instance AIO 13.0.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a PDF attachment named with an uppercase .PDF extension, checking both the message list and message view. Trace how application/octet-stream attachments are identified and opened; done means the PDF opens in both locations without changing behavior for lowercase .pdf files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- full-stack
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100