# Bug OP-8175 - Images directly uploaded to s3 are not displayed within new tab

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.1.3 |
| Observed in versions |  |
| Sprint | 11.1.3 |
| 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

### **Environment**:

Every environment where attachments are directly uploaded to s3, e.g. SaaS and community

### **Steps to reproduce:**

1.  Have an image
2.  Add the image as an attachment to e.g. a wiki page or a work package
3.  Click on the link of the uploaded attachment

### **Actual Behavior**

A new tab is opened, within the tab, the image is downloaded

### **Expected Behavior**

A new tab is opened, within the tab, the image is displayed.

### Notes

The content type is not set correctly on uploading the attachment to s3. It is always 'binary/octet-stream'. For an image to be displayed within the tab it would have to be 'image/png'.
