How to get form-data body in Picker?


#1

How to get form-data body in Picker?


#2

You should use some middleware parsers to convert the raw body to data you want:

//  Server side router init example: getting json & form data
import {Picker} from 'meteor/meteorhacks:picker';
import bodyParser from 'body-parser';

Picker.middleware(bodyParser.json());
Picker.middleware(bodyParser.urlencoded({ extended: false }));

export default Picker;

You may use any connect/express middleware like body-parser