code4romania / code4romania/onghub

Files are stored without an extension

Open
#539 0 comments 0 reactions 0 assignees View on GitHub
bug :bug:
Dominant language
TypeScript
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Related to #535

**Describe the bug**
When an NGO uploads something like their statute, they upload a PDF/docx file.
When trying to then download the file, that file is downloaded without an extension and we often have issues figuring out what kind of file it is.

**Steps to reproduce the behavior**
1. Register an NGO and upload a file
2. Go to the page of that NGO
3. Download the statute (it's a mandatory file)
4. The file name was changed and the extension was lost in the process

**Expected behavior**
4. The file has a different name but the extension is still kept there

**Screenshots**
Files downloaded from NGO Hub with no way of telling what kind of file it is:
![image](https://github.com/code4romania/onghub/assets/2820084/3191d08d-ae9f-46e4-b23d-0f1146f902c2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.