Content
View differences
Updated by Kabiru Mwenja about 2 years ago
### Steps to reproduce
1. Login as a user and navigate to a project where you have permissions to add an IFC model.
2. Navigate to BCF module
3. Click on _IFC models (Industry Foundation Classes)_
4. Try to upload a new IFC model with a file size larger than the max. allowed attachment file size (Administration -> System Settings -> Attachments)
5. Receive an error message
### What is the buggy behavior?
* The error message does not show the correct error reason (file size to large).
* OP instead shows an error message that is misleading (see screenshot below)
### What is the expected behavior?
1. The error message should indicate that the allowed attachment file size is the reason why the file could not be uploaded.
### Screenshots and other files
Misleading error message:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/88051/content">
### Environment information
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [x] Docker All-in-one container (probably affects all environments)
* [ ] Docker-compose installation
* [ ] Other (please specify)
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_EN_
##### _When Fixed Back Port to the following Versions_
* [ ] _14.0.x - <mention class="mention" data-id="80250" data-type="user" data-text="@Kabiru Mwenja">@Kabiru Mwenja</mention>_
1. Login as a user and navigate to a project where you have permissions to add an IFC model.
* The error message does not show the correct error reason (file size to large).
1. The error message should indicate that the allowed attachment file size is the reason why the file could not be uploaded.
Misleading error message:
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/88051/content">
### Environment information
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker-compose installation
* [ ] Other (please specify)
**Browser**
* [ ] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_EN_
##### _When Fixed Back Port to the following Versions_
* [ ] _14.0.x - <mention class="mention" data-id="80250" data-type="user" data-text="@Kabiru Mwenja">@Kabiru Mwenja</mention>_