Skip to content

Instantly share code, notes, and snippets.

View briansalvattore's full-sized avatar

Brian Salvattore briansalvattore

View GitHub Profile
@briansalvattore
briansalvattore / upload_image_with_functions.js
Last active March 12, 2019 15:31
*For this example we are using express
'use strict'
const utils = require('utils')
//...
app.post('/upload/image', (req, res) {
utils.uploadFile(req, 'your bucket', 'your folder',
(downloadUrl) => {
return res.status(201).json({ success: true, downloadUrl: downloadUrl })
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,