Baseflow / Baseflow/flutter_cache_manager
[Feature request] override extension file
- Ngôn ngữ chính
- Dart
- Star
- 809
- Fork
- 510
- Merge trung bình
- 6 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
I need to enforce a specific extension to the cached file whatever the MIME type of the file is.
It would be nice to have an option for that, for example:
`var file = await DefaultCacheManager().getSingleFile(url, {extension: 'my'});`
The end result with be a path with `file:///somewhere/in/the/phone/myfile.my`.
Thank you!
Hướng dẫn đóng góp
Hướng nghiên cứu
Start at the DefaultCacheManager().getSingleFile entry point described in the issue and trace how the cache filename and extension are selected from the MIME type. Add an optional extension setting that controls the returned cached file path, then verify that the resulting path uses the requested extension regardless of MIME type.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart, flutter
- Lĩnh vực
- mobile
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100