Where does Form Data go -- how to inspect what submitted in Node


If I use formData


to set a value and submit in Node.js … how can I inspect it in the request object?

Like this:

    this.formData = new FormData();
 this.formData.set(key, value);

(here key is patient_name, patient_information)

After submitting … when I inspect the request object in middleware … I can only find the variables represented like this :

> console.log(req) on the server side submission:
> body: { patient_name: undefined, patient_information: undefined },

Where they are undefined in the request body.

Is it possible to see them in the request object?

Or do I need to use formidable to somehow?

For example I can view the data like this:


        let form = new formidable.IncomingForm();
	form.keepExtensions = true;
    form.parse(req, (err, fields, files) => {

        let name = fields.patient_name;
        let information = fields.patient_information;

        console.log(name, information);

Is this middleware related to Express?

Yes thx