Skip to content

Instantly share code, notes, and snippets.

@nataliaconde
Created July 7, 2020 15:42
Embed
What would you like to do?
Firebase Storage: What It Is and How It Works
var storageRef = firebase.storage.ref("folderName/file.jpg");
var fileUpload = document.getElementById("fileUpload");
fileUpload.on('change', function(evt) {
var firstFile = evt.target.file[0];
var uploadTask = storageRef.put(firstFile);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment