nextcloud / nextcloud/mail

PDF attachments cannot be displayed if MIME is application/octet-stream

Open
#12,934 7 comments 0 reactions 0 assignees View on GitHub

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
  1. Receiving an email with a PDF attachment whose file extension is in uppercase (*.PDF)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.