Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Backend needs to send contract filename

Abierto
#338 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@birloiflorian ya está trabajando en esto.

Desde el 20/8/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

back-end bug :bug: web-app
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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de code4romania/vic

Todos los issues de code4romania/vic

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.