Uploader incompatible with React 19

After updating from version 18 to React 19, the uploader component is no longer serializing and sending uploaded files as expected.

We have a C#/.NET API that previously received the data from a List<IFormFile> 'uploadFiles' parameter. The upload files parameter appears as an empty list after React is updated to version 19.

Is there a prop or alternative way for uploading I can try? Thanks in advance for any help!


2 Replies 1 reply marked as answer

YV Yaswin Vikhaash Rajaretenam Syncfusion Team March 31, 2025 11:32 AM UTC

We have created a sample based on the details you shared, but we were unable to replicate the issue you are facing. However, we would like to inform you that the name attribute must match the name of a parameter in the POST method. The name attribute is automatically generated from the control’s ID property. If the name attribute differs from the ID property, you can use the htmlAttributes property to set the name attribute directly for the input element.

For your reference, we have shared a sample and a video demonstration. Please review them and let us know if you need further assistance.

Sample: https://stackblitz.com/edit/react-r7jebw7c-bpd6tmzq?file=index.js

Video Reference:



Marked as answer

MB Matt Bartl April 7, 2025 06:53 PM UTC

I believe I was encountering some sort of issue with npm or a specific package during updates that was causing the issue. I went through our process for updating again after seeing this last week and did not encounter the problem again, which is why I'm thinking it was some other problem on my end.


My apologies for not confirming that the issue was directly with the uploader before sending this in - I appreciate you taking the time to confirm it was not on your end.


Loader.
Up arrow icon