nextcloud / nextcloud/server

[Bug]: Missing original filename in Preview's `Content-Disposition` header

Open
#58,963 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 34-feedback bug feature: files feature: previews and thumbnails hotspot: filename handling
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Missing original filename in Preview's Content-Disposition header

Steps to reproduce
  1. Open any Nextcloud page with an image preview (Viewer, Talk attachments)
  2. Using the Web-Browser context menu download the image
  3. Downloaded file is something like 683-1024.jpeg
Expected behavior

Content-Disposition header should include the original filename (possible with the size).

Nextcloud Server version

34 (master)

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

Start by tracing the image-preview response used by Viewer and Talk attachments, focusing on where the Content-Disposition header is produced. Reproduce the browser download and verify that the header preserves the original filename, including when a size variant is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
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.