0
for (var i = 0; i < e.target.files.length; i++) {
var storageRef = firebase.storage().ref('user_files/' + e.target.files[i].name).put(e.target.files[i]);
storageRef.on('state_changed', null, null, function (snapshot) {
var downloadURL = storageRef.snapshot.downloadURL;
//i need all the files URL
//but always get the last file URL
});
}