Skip to content

Instantly share code, notes, and snippets.

@varun7952
varun7952 / UploadImage.java
Created November 23, 2021 20:03
Image uploading function which send images to the firebase storage in a loop (Multiple Image firebasae image upload )
// GETTING IMAGE PATHS FROM PHONE GALLERY IN ARRAYLIST(STRING TYPE)
private synchronized void UploadToFireBaseStorage(ArrayList<String> filePath,int type) {
String uploadFolder = null;
String attachmentType = null;
final ArrayList<String> multipleImages = new ArrayList<>();
Log.d(TAG,"Size of File at Upload Method "+filePath.size());
switch (type){
case 0:
uploadFolder = "Photos";