Backend needs to send contract filename
@birloiflorian ya está trabajando en esto.
Desde el 20/8/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description
In the web app, when trying to download one of the contracts, the file being downloaded has a name similar to this one: d4eff344-eada-4c7b-bd10-21f952d7fc5c-Test which is the name coming from the backend.
Ideally, we would want a custom name, maybe involving the volunteer name.
In the frontend, we are trying to send a custom name for the file, by setting the download attribute of the <a> element:
<a href="something" download="Custom_Contract_Name". The problem is that the download attribute sets the name of the file only in the cases of same-origin, which is not our case, therefore being ignored.
Possible Solution
The backend could sent a Content-Disposition header that specifies a filename.
Issue was first mentioned here: https://github.com/code4romania/vic/issues/318#issuecomment-2252154505
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de code4romania/vic
-
bug :bug:
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
code4romania/vic#463 ·
-
Typos & small fixes neededAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
code4romania/vic#458 ·
-
Update cards highlight issueAbiertobug :bug: mobile-app
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
code4romania/vic#456 ·
Todos los issues de code4romania/vic
Issues similares
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
agent-task risk:low
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
guyellis/http-status-check#512 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/playwright#43327 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/TypeScript#64758 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
Los mantenedores suelen responder en 2 días