If you’re like me, then maybe you’ve been programming locally using multer, multers3, and Digital Ocean Spaces (which uses the AWS SDK). Now it’s time to deploy those local functions to Firebase, and they’re suddenly not working. And after some Googling, you realize that because of how Firebase is implemented, that you can’t use multer with GCF. You have to use something called Busboy.

I found myself in this position recently. After a couple days of Googling, and trial and error, here’s my final code that I was able to get working using GCF and Busboy to upload an image…

Scott Lieber

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store