Getting data as ‘undefined’ at the backend when sending data using formdata in React JS + Express JS
I have a project made using React for the frontend and Express for the backend. I want to create a feature to edit data. The data being sent includes a file, so I am using formData() from React. Before sending it, I have checked the contents of formData and they are present. However, after sending it to the backend, the result is undefined. Why is this happening?