xxxxxxxxxx
const base64str = "data:image/png;base64,....."
firebase
.storage()
.ref('path/to/image.png') // specify filename with extension
.putString(base64str.split(',')[1], "base64", {contentType: 'image/png'})
// specifying contentType ^^^