Describe the bug
There is an error occuring when an Admin is trying to add an optional Attachment into a Proposal even though the Proposal component is configure to allow attachment.
Normal users, if they are allowed to, can create proposal with optional Attachment if Proposal Component are set up to allowed optional Attachment.
To Reproduce
Steps to reproduce the behavior:
- In a Participatory Process add a Proposal Component and make sure to check the box Allow attachments
- As an Admin create a new Proposal
- Fill the Title, Body and add an Optional File and fill the name for this file
- Click on 'Create'
- See error
Expected behavior
The Proposal should be created with the optional File because the Proposal Component was set up to Allow attachments
Screenshots
If applicable, add screenshots to help explain your problem.
Proposal Component with Allow attachments checked

Attaching a file to the new proposal and click create

The error on try.decidim.org

See more verbose error

The function thatlaunches the error

Stacktrace
If applicable, add the error stacktrace to help explain your problem.
Extra data (please complete the following information):
- Device: Desktop
- Device OS: Windows 10
- Browser: Chrome
- Decidim Version: 0.27.1 and try.decidim.org
Additional context
Add any other context about the problem here. For instance, add Metadecidim link.
Describe the bug
There is an error occuring when an Admin is trying to add an optional Attachment into a Proposal even though the Proposal component is configure to allow attachment.
Normal users, if they are allowed to, can create proposal with optional Attachment if Proposal Component are set up to allowed optional Attachment.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Proposal should be created with the optional File because the Proposal Component was set up to Allow attachments
Screenshots
If applicable, add screenshots to help explain your problem.
Proposal Component with Allow attachments checked

Attaching a file to the new proposal and click create

The error on try.decidim.org

See more verbose error

The function thatlaunches the error

Stacktrace
If applicable, add the error stacktrace to help explain your problem.
Extra data (please complete the following information):
Additional context
Add any other context about the problem here. For instance, add Metadecidim link.