Skip to content

Instantly share code, notes, and snippets.

@shriharip
shriharip / FirebaseCloudStoragePlugin.ts
Created January 10, 2025 22:23 — forked from benedictchen/FirebaseCloudStoragePlugin.ts
Firebase Cloud Storage Plugin for Uppy (File Uploader Library)
import { BasePlugin } from '@uppy/core'
import { Uppy, UppyOptions } from '@uppy/core';
import { getAuth } from 'firebase/auth';
import {
UploadTaskSnapshot,
getDownloadURL,
getStorage,
uploadBytesResumable,
ref,
} from 'firebase/storage';
@shriharip
shriharip / node-express-multer-memoryStorage-firebase.js
Created January 10, 2025 21:47 — forked from raditotev/node-express-multer-memoryStorage-firebase.js
Uploading files to Firebase/ Storage using Nodejs, express and multer with memoryStorage as storage option
const express = require('express');
const morgan = require('morgan');
const cors = require('cors');
const createError = require('http-errors');
const bodyParser = require('body-parser');
const { initializeApp } = require('firebase/app');
const {
getStorage,
ref,
uploadBytes,