# Bug OP-18571 - SVG attachments are interpreted as PNG

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-18571

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.6.4 |
| Observed in versions |  |
| Sprint | 16.6.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Create an SVG file using `.png` extension.

2.  Upload it as an attachment.

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - The mime type narrowing allows `image/X` to be interpreted as `image/png` based on the file extension

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  SVG files should not be interpreted as another image format, as it's not inlineable
