Baseflow / Baseflow/flutter_cache_manager
[Feature request] override extension file
- Vorherrschende Sprache
- Dart
- Sterne
- 809
- Forks
- 510
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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!
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100