Closed ioaNikas closed 3 years ago
I'll look into this later today, thanks for helping test the RC.
Can confirm this bug is also in the released 6.0. It was working with -rc.1. getDownloadURL
is also affected
Maybe it comes from this change. Would you recommand a workaround in the meantime ?
Anybody found a workaround or is the only solution to use RC1 atm?
You can do something like that:
this.firebaseStorage.storage.ref(path).getMetadata()
.then(meta => meta.customMetadata);
I can confirm that I'm also seeing this on @angular/fire: ^6.0.0
when attempting to do the following:
const transcodeObs = fileRef.getMetadata().pipe(
tap((x) => console.log(x)),
switchMap((metadata) => {
return this.transcodeService.transcode$({
readPath: metadata.fullPath
})
})
)
same here:
combineLatest([
this.storage.ref(this.path + fileItem.fileName).getMetadata(),
this.storage.ref(this.path + fileItem.fileName).getDownloadURL(),
])
.pipe(
map(url => {
console.log(url[0]);
console.log(url[1]);
return url[0];
}));
Same issue on 6.0.0
in 6.0.2 this appears to be working again
Version info
Angular: 9.1
Firebase: 7.15.0
AngularFire: 6.0.0-rc.2
Node: 10
How to reproduce these conditions
AngularFireStore works fine and my image is uploaded in the right place. Problem is that I can't access anymore the metadata of it with
getMetadata()
from AngularFireStorageReference.I noticed that change in the last update :
from
to
And here it is how I use it right now in my code
Tried to do
this.ref.getMetadata().subscribe(console.log())
but nothing is showing in the console. Am I missing something ?