Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] override extension file #430

Open
jvinai opened this issue Sep 7, 2023 · 1 comment
Open

[Feature request] override extension file #430

jvinai opened this issue Sep 7, 2023 · 1 comment

Comments

@jvinai
Copy link

jvinai commented Sep 7, 2023

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!

@abdushkur
Copy link

I am facing same problem with FireStorage files, download files are stored in cache like this:
image
these files were mp4, but firebase adds signed key for viewing these files, so when saving these files its extension isn't based on mime type but requested url, if specifying its extension would solve this , then I'd be able load this file to video player.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants