Multer: req object in changeDest() doesn't contain all fields.

Created on 5 Jul 2015  路  2Comments  路  Source: expressjs/multer

req object in changeDest contains only the fields that are present before the last file input field and not the fields which comes after it.

Most helpful comment

Thats how your browser works, it's impossible to fix in multer.

A fix for this is to use javascript on the client side to catch the submit event and instead submit using FormData and ordering the fields so that the input data is before any files.

All 2 comments

Thats how your browser works, it's impossible to fix in multer.

A fix for this is to use javascript on the client side to catch the submit event and instead submit using FormData and ordering the fields so that the input data is before any files.

Is it possible to have an example?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tjabdoullah picture tjabdoullah  路  4Comments

samipjain picture samipjain  路  4Comments

karandutt01 picture karandutt01  路  3Comments

adrienbarreau picture adrienbarreau  路  3Comments

tonghae picture tonghae  路  4Comments