Baseflow / Baseflow/flutter_cache_manager
[Feature request] override extension file
- Dominant language
- Dart
- Stars
- 809
- Forks
- 510
- Avg merge
- 6m
- Merged PRs (30d)
- 1
Description
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!
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100