[PR #12490] [MERGED] Set Content-Disposition header to attachment for image endpoints #13221

Closed
opened 2026-02-07 07:09:09 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/12490
Author: @nielsvanvelzen
Created: 8/21/2024
Status: Merged
Merged: 8/22/2024
Merged by: @crobibero

Base: release-10.9.zHead: content-disposition


📝 Commits (1)

  • 3cc65a0 Set Content-Disposition header to attachment for image endpoints

📊 Changes

3 files changed (+5 additions, -0 deletions)

View changed files

📝 Jellyfin.Api/Controllers/ImageController.cs (+2 -0)
📝 Jellyfin.Api/Controllers/PluginsController.cs (+2 -0)
📝 Jellyfin.Api/Controllers/TrickplayController.cs (+1 -0)

📄 Description

The server serves images in various endpoints, those are meant to be displayed in the various clients and not for sharing. Setting the content disposition header to attachment will force a browser to download the images when opened directly instead of displaying them in the browser.

Changes

  • Update item image endpoints
  • Update plugin image endpoint
  • Update user image endpoints
  • Update splashscreen image endpoint

Issues


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/12490 **Author:** [@nielsvanvelzen](https://github.com/nielsvanvelzen) **Created:** 8/21/2024 **Status:** ✅ Merged **Merged:** 8/22/2024 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.9.z` ← **Head:** `content-disposition` --- ### 📝 Commits (1) - [`3cc65a0`](https://github.com/jellyfin/jellyfin/commit/3cc65a0257e687647bb27a2e175c176aab34924a) Set Content-Disposition header to attachment for image endpoints ### 📊 Changes **3 files changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/ImageController.cs` (+2 -0) 📝 `Jellyfin.Api/Controllers/PluginsController.cs` (+2 -0) 📝 `Jellyfin.Api/Controllers/TrickplayController.cs` (+1 -0) </details> ### 📄 Description The server serves images in various endpoints, those are meant to be displayed in the various clients and not for sharing. Setting the content disposition header to `attachment` will force a browser to download the images when opened directly instead of displaying them in the browser. **Changes** - Update item image endpoints - Update plugin image endpoint - Update user image endpoints - Update splashscreen image endpoint **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:09:09 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13221