I have an array of file objects that is sent to the server. "files[0] = (file object), files[1]= ... " Multer doesn't recognized its field name and "request.files" is empty but "request.body is with the array of files.
My problem was I append the array of files to the FD I uploaded as fd.append(files, fileList)
and what I should have done is a for loop that append each file object from the array of files to the FD with a field name of files.
Thank you all for your answers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With