Backend needs to send contract filename
@birloiflorian がすでに取り組んでいます。
2024年8月20日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
code4romania/vic のほかの issue
-
bug :bug:
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
code4romania/vic#463 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
code4romania/vic#458 ·
-
bug :bug: mobile-app
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
code4romania/vic#456 ·
code4romania/vic の issue をすべて見る
似ている issue
-
priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
immich-app/immich#32426 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue hacktoberfest help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
libredb/libredb-studio#1756 ·
メンテナーはふだん 1 日以内に返信
-
state:triage-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信