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

expose download http headers to API #14

Open
hannah-eklund opened this issue May 12, 2021 · 2 comments
Open

expose download http headers to API #14

hannah-eklund opened this issue May 12, 2021 · 2 comments

Comments

@hannah-eklund
Copy link

I need to add an authorization header to download the file with a http request

This method has 3 parameters, but only 2 are exposed to the API:

return await FileSystem.downloadAsync(uri, fileUri);

@medigvijay
Copy link

Yup, there seems no way to pass other http options

@kathawala
Copy link
Owner

This is a good idea. Happy to accept PRs which expose the options argument from here: https://docs.expo.dev/versions/latest/sdk/filesystem/#filesystemdownloadasyncuri-fileuri-options. It could be as simple as passing options through to the downloadAsync call Otherwise, I'll try to get to it, but I have other issues to get to first, namely enabling this to work with Android SAF

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

3 participants