I'm new with node.js, I'm trying to wrap node-multiparty callbacks with bluebird but the parse function signature of multiparty is function(err, fields, files) and the promise signature requires just one return value. I'm sure there is a way to do this but I haven't found anything yet.
Thanks in advance!
Had the same problem. Unfortunately victorkohl's solution does not work for me because of parse's callback pass 2 params (fields and files) Fixed by
Note: {multiArgs:true} option
Use
spread
instead ofthen
. Taking from the example in their README: