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

How to upload files to Firebase Storage? #522

Closed
KhubaibKhan4 opened this issue Jun 3, 2024 · 3 comments
Closed

How to upload files to Firebase Storage? #522

KhubaibKhan4 opened this issue Jun 3, 2024 · 3 comments
Labels
API coverage Request for missing APIs

Comments

@KhubaibKhan4
Copy link

I wanna upload files to firebase but unable to because It requires the File to upload not the byte array, If i try to convert that using java.io in the android & ios code as well but I'm unable to provide me way.

@KhubaibKhan4 KhubaibKhan4 added the API coverage Request for missing APIs label Jun 3, 2024
@BasBuijsen
Copy link
Contributor

Currently only uploading of files from urls is covered. On the Android side you have a constructor for File that needs a URI to a local file. On the iOS side there is a constructor for File that needs a NSURL to a local file.

However i am currently working on adding metadata to uploading files and that pr will also include uploading data directly (i need it for testing purposes). This will have a constructor on Android with a ByteArray and on iOS with NSData. I am currently working on it so it is not in the PR yet but it will come soon.

@KhubaibKhan4
Copy link
Author

That's great. Looking forward to it.

@BasBuijsen
Copy link
Contributor

It is merged now so in the next version this should be available 🎉

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

No branches or pull requests

3 participants