react-native-firestack icon indicating copy to clipboard operation
react-native-firestack copied to clipboard

[V3] storage meta data

Open florianbepunkt opened this issue 9 years ago • 1 comments

Noticed two issues when it comes to file meta data

Upload works fine, but meta data is not showing up in firebase storage dashboard

firestack
  .storage()
  .uploadFile('myfilename.jpg', myfile.uri, {
  test: '12343',
  }, (event) => {
    console.log('event: ', event);
  })

the other thing is that there is no way to access meta data in firestakc as far as I know

firestack
    .storage()
    .ref(resp.fullPath)
    .getMetadata()
    .then((resp) => {
    console.log('meta data', resp);
})

getMetaData() from JS SDK is not implemented (yet?)

florianbepunkt avatar Dec 12 '16 12:12 florianbepunkt

@florianbepunkt This should now work on v3 - let me know if there are any issues

chrisbianca avatar Jan 24 '17 11:01 chrisbianca