# Bug OP-2995 - dropping jpg files bahvior is not deterministic

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 6.0.2 |
| Observed in versions |  |
| Sprint |  |
| 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 | Oliver Günther |
| 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:**

CASE 1  
1\. Click “+ Work package”  
2\. drop a jpg file into the description field of the new workpackage

or

CASE 2  
1\. open an existing work package  
2\. click on the description field to start editing  
3\. drop a jpg file into the description field

**Actual Behavior**  
CASE 1: @ attachment:xyz@ will be appended  
CASE 2. `!/attachments/000/xyz.jpg!` will be appended

**Expected Behavior**  
In case 1 it should behave like in case 2

**sideeffects**  
Sometimes the `attachment:xyz` is shown as Inline Code and no link to the attachment is added.

Like here:  
![](attachment.jpg)

Link to this WP: <mention class="mention" data-id="23749" data-type="work_package" data-text="#23749">#23749</mention>

P.S. Did you recently add the “Bug found in Version” field ? Or did i missed it in the last reports?
