Baseflow / Baseflow/flutter_cache_manager
[Feature request] override extension file
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
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!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100