Baseflow / Baseflow/flutter_cache_manager
[Feature request] override extension file
- Langage dominant
- Dart
- Étoiles
- 809
- Forks
- 510
- Merge moyen
- 6 min
- PR mergées (30 j)
- 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!
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- dart, flutter
- Domaine
- mobile
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100