Skip to content

Instantly share code, notes, and snippets.

View itseduvieira's full-sized avatar

Edu itseduvieira

View GitHub Profile
@itseduvieira
itseduvieira / file-upload.js
Last active October 22, 2021 13:48
Image upload with AngularJS + Node.js + Firebase
// Angular controller
$scope.imageUpload = function(event, index) {
var files = event.target.files //FileList object
for (var i = 0; i < files.length; i++) {
var file = files[i]
var reader = new FileReader()
reader.onload = (function(index){
return function(e) {