Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Firebase Storage: What It Is and How It Works
var storageRef ="folderName/file.jpg");
var fileUpload = document.getElementById("fileUpload");
fileUpload.on('change', function(evt) {
var firstFile =[0];
var uploadTask = storageRef.put(firstFile);
uploadTask.on('state_changed', function progress(snapshot) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment