Using FileSystem.downloadAsync() with a header ?

Hi all,
It is possible to download a file with FileSystem.downloadAsync() with a header ?
I need to send an authorization header to my server to download a file… and seems that FileSystem can’t do it.

Maybe can i download a file with axios and save with FileSystem ? I didn’t find any examples for that.
Do you have any solution to download a file and save it in local storage ?

Sorry for my english,

Nicolas

Hey @nicolasalt128,

Yes, it is possible: https://docs.expo.io/versions/v30.0.0/sdk/filesystem#expofilesystemcreatedownloadresumableuri-fileuri-options-callback-resumedata

Cheers,

Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.