Created
June 17, 2019 15:20
-
-
Save muhozi/5a522f9adddb9062a5a01b6e689e886c to your computer and use it in GitHub Desktop.
upload sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firebase.storage.TaskEvent.STATE_CHANGED, | |
snapshot => { | |
let state = {}; | |
state = { | |
...state, | |
progress: (snapshot.bytesTransferred / snapshot.totalBytes) * 100 // Calculate progress percentage | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment