Backend needs to send contract filename
@birloiflorian ci sta già lavorando.
Dal 20/8/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di code4romania/vic
-
bug :bug:
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
code4romania/vic#463 ·
-
Typos & small fixes neededAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
code4romania/vic#458 ·
-
Update cards highlight issueApertabug :bug: mobile-app
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
code4romania/vic#456 ·
Tutte le issue di code4romania/vic
Issue simili
-
bug go
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
genkit-ai/genkit#6761 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NousResearch/hermes-agent#136483 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
facioquo/stock-indicators-dotnet#2316 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vercel-labs/skills#2460 ·
I maintainer di solito rispondono entro 1 giorno