Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Backend needs to send contract filename

Aperta
#338 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@birloiflorian ci sta già lavorando.

Dal 20/8/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
TypeScript
Stelle
3
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di code4romania/vic

Tutte le issue di code4romania/vic

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.