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

[firebase-storage] customMetadata cannot be set on IOS #71

Closed
canmertc opened this issue Mar 21, 2022 · 0 comments
Closed

[firebase-storage] customMetadata cannot be set on IOS #71

canmertc opened this issue Mar 21, 2022 · 0 comments
Labels
bug Something isn't working ios

Comments

@canmertc
Copy link
Contributor

I'm using the following code to upload files with metadata to the default bucket. It works on Android as expected but customMetadata property cannot be set on IOS.

// File upload with custom metadata
const metadata = new Metadata();
metadata.customMetadata = {
  foo: "bar"
};

const defaultBucket = firebase().storage();
const reference = defaultBucket.ref(remotePath);
const task = reference.putFile(localPath, metadata);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios
Projects
None yet
Development

No branches or pull requests

2 participants