siralam / BSImagePicker

An image picker that extends BottomSheetDialogFragment. Camera and gallery all in one dialog. Single or Multi Selection.
201 stars 62 forks source link

Uploading images to firebase #22

Closed rocks860 closed 5 years ago

rocks860 commented 5 years ago

How do we upload images after selecting them? How do we loop through the images uris so that we can save them in realtime database? I have tried it this way https://pastebin.com/jn2k5Pi6 but it only uploads the last one.

siralam commented 5 years ago

Question irrelevant to this lib. Wish you good luck on finding your solution.

rocks860 commented 5 years ago

That's a fair point. I need to use fromFile in my fragment class to implement this loop: for (int i = 0; i < arrayListImageFile.size(); i++) { Uri uri = Uri.fromFile(arrayListImageFile.get(i)); uploadMethod(uri, i); } urilist is already a uri so it won't work here.