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.
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?
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.