angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.68k stars 2.19k forks source link

AngularFireStorage upload multiple files setup #2373

Closed weilies closed 3 years ago

weilies commented 4 years ago

Version info

Angular: 9.0.7

Firebase: 7.12

AngularFire: 5.4.2

Other (e.g. Ionic/Cordova, Node, browser, operating system): Using StackBlitz

It's not really an error but i stuck because there isn't any documentation i able to reference. I am feeling great with the example and i managed to make the example code work.

But i hit a roadblock because i need multiple upload within a page, and i am not able to make it an ARRAY with adding [] as below

uploadPercent: Observable<number[]>; downloadURL: Observable<string[]>;

it just doesn't work... could anyone share a working example? Thanks a lot.

Regards, Weilies

jamesdaniels commented 3 years ago

you need to use rxjs merge/concat for this