We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

await UploadObj.UploadAsync(); throws null exception error if empty after 21.1.35

After the new update, the file upload method await UploadObj.UploadAsync(); throws a null exception error if there is no file added to the file upload control as shown in the attached project.

Is this by design or a bug? If it is by design then how do I check to see if there is no file being uploaded before calling the method?

Attachment: TestFileUpload_e0267ce0.zip

4 Replies 1 reply marked as answer

NI Nick April 4, 2023 01:37 PM UTC

Can I get an update regarding this?

MP Michal Poterek April 5, 2023 06:06 AM UTC

Same here, I upgraded the syncfusion package from 20.x.x. to 21.1.35 and FileUpload component stopped working, it's throwing NullReferenceException.

Is there a solution?

MR Mallesh Ravi Chandran Syncfusion Team April 6, 2023 01:47 PM UTC

Hi Nick,
    We have confirmed the reported issue is an issue at our end and this fix will be included in our upcoming patch release, which is expected to be rolled out end of April, 2023.

You can track the status of this issue from the below feedback.

Feedback: https://www.syncfusion.com/feedback/42703/

Disclaimer: "The inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization"


Mallesh R

Marked as answer

MR Mallesh Ravi Chandran Syncfusion Team May 11, 2023 10:45 AM UTC

Hi  Nick, 

We have included the fix for the issue “ The file upload method await UploadObj.UploadAsync(); throws a null exception" with our release version 21.1.39. So please upgrade your package to the latest to resolve the issue from your end.

Release notes:  https://blazor.syncfusion.com/documentation/release-notes/21.1.39?type=all#file-upload



Attachment: TestFileUpload_29622fb3.zip

Live Chat Icon For mobile
Up arrow icon