[Solved] Receiving Multi-Part Form Data with Meteor + Multer?

Not sure why that SO answer was marked as correct (maybe the package has changed over time?).

Multer is a middleware sits between the http server, and user code.

In the example, the http server is provided by express, in your code, you want to use Meteor’s http server.
Meteor’s http server is provided by the WebApp package:

Looking at the docs for WebApp, the API is similar to express, and so we can mount multer on a single route like so:

import { WebApp } from 'meteor/webapp';
import multer  from 'multer';

const callback = multer({ dest: './uploads' });

// Mount the middleware first so it's run first
WebApp.connectHandlers.use('/upload', callback.single('json'));
// Then mount the user handler
WebApp.connectHandlers.use('/upload', function (req, res) {
  const file = req.file
  //do something with the file
});