Backend needs to send contract filename
@birloiflorian đang làm issue này rồi.
Từ ngày 20/8/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của code4romania/vic
-
bug :bug:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
code4romania/vic#463 ·
-
Typos & small fixes neededĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
code4romania/vic#458 ·
-
Update cards highlight issueĐang mởbug :bug: mobile-app
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
code4romania/vic#456 ·
Tất cả issue của code4romania/vic
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
components-web-app/docs#260 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
521xueweihan/HelloGitHub#4025 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ctrf-io/playwright-ctrf-json-reporter#117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
voidzero-dev/void#478 ·
Maintainer thường phản hồi trong vòng 1 ngày