code4romania / code4romania/onghub
[NGO Registration] The statute loses its extension
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The statute of the organization uploaded in the app loses its extension.
**Steps to reproduce the behavior**
1. Register an organization and add a statute
2. Go to `/organization/legal` and download the file
3. The file is downloaded without any extension
**Expected behavior**
The file's extension should be kept, especially if someone manages to upload something that isn't a PDF.
**Additional context**
We saw that some NGOs managed to upload a non-PDF file as a statute (an organization managed to upload a TXT file a few days ago).
While we weren't able to reproduce the issue, not knowing what kind of file this is could cause big problem for our workflow.
Contributor guide
Assessment
This issue has not been assessed yet.