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

后端 未结 2 928
刺人心
刺人心 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:03

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

提交回复
热议问题