Firebase hosting and cloud functions don't work with formidable: incomingForm is not a constructor

后端 未结 2 926
刺人心
刺人心 2021-01-26 01:46

I use express to handle post requests and formidable to parse uploaded files:

import * as admin from \"firebase-admin\";
import * as functions from          


        
相关标签:
2条回答
  • 2021-01-26 02:02

    Formidable-serverless is a good option. It works with Firebase Cloud Functions.

    0 讨论(0)
  • 2021-01-26 02:03

    Formidable doesn't work with Cloud Functions, for the same reason that multer doesn't work. Use busboy instead.

    0 讨论(0)
提交回复
热议问题