busboy

Handling multipart/form-data POST with Express in Cloud Functions

坚强是说给别人听的谎言 提交于 2019-11-29 14:04:32
I've been trying to handle POSTs (multipart/form-data) with a Firebase function and Express but it just doesn't work. Tried this in local server and it works just fine. Everything's the same except it's not contained in a Firebase function. Besides screwing up the request object it seems it also screws up the way busboy works. I've tried different solutions presented here but they just don't work. As one user mentions, the callbacks passed to busboy (to be called when a 'field' is found or when it finishes going through the data) are never called and the function just hangs. Any ideas? Here's