# Bug NEX-388 - Misleading error message when uploading to Nextcloud

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-388

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | Nextcloud Integration 2.7.0 |
| Observed in versions | 14.2.0 |
| Bug found in version (deprecated) | 14.2.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Dominic Bräunlein |
| Product manager |  |
| Developers |  |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Preconditions

1.  OpenProject connected to Nextcloud

2.  Restriction for MIME types in Nextcloud activated (via app "Files access control" -\> Flow -\> "Block access to a file")

3.  Activate external storage to Nextcloud in Project Settings -\> Files 

### Steps to reproduce

1.  Go to the work packages and upload a file to Nextcloud which is not allowed in the MIME type restrictions as described above in Preconditions <mention class="mention" data-id="2" data-type="work_package" data-text="#2">#2</mention>

2.  See error message which states "Please check \[...\]" -\> see screenshot below

### What is the buggy behavior?

  - the error message is misleading since the behaviour has nothing to do with the OpenProject integration but with the fact that MIME types have been limited

### What is the expected behavior?

1.  Display an error message which states "Files of this type are not allowed for uploading"

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/113863/content">

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition

- [x] Packaged installation
  
    - What distribution? RHEL 8.9

- [ ] Docker All-in-one container

- [ ] Docker-compose installation

- [ ] Other (please specify)

**OpenProject version**

OpenProject Enterprise 14.2.1 & Nextcloud 29.0.3

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Other (please specify): Edge

**Language**

English
