Problem with passing upload file values to "data"

I am trying to store an array of list of files in the “data” variable, but I am not able to pass the values after pressing the submit button.

Here is a sample of the code.

The fileList variable is able to store the information. However, when I console log the fileList variable, only fileList[0] has the actual file information, anything else is undefined. Pressing submit button does not even pass the fileList[0] to the “data” variable.

Any help is much appreciated.

Note: while I know the rsuiteJS upload component allows uploading multiple files per upload field, it is a requirement that I need to set each upload field to allow upload only one file.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.