Baseflow / Baseflow/flutter_cache_manager

[Feature request] override extension file

Abierto
#430 1 comentario 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
809
Forks
510
Merge medio
6 min
PR fusionados (30 d)
1

Descripción

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!

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
dart, flutter
Área
mobile
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.