The File Uploader examples do not work on asp.net core

Hello,

Thank you for the components.

However, you really need to update the demos for the File Uploader component to work on asp.net core. For example, in the "Open And Edit The Uploaded Files" (https://helpej2.syncfusion.com/aspnetcore/documentation/uploader/how-to/open-and-edit-the-uploaded-files?cs-save-lang=1&cs-lang=csharp) the ASP.NET CORE example code uses:

Response.StatusDescription = fileSavePath;
Response.End();

The Microsoft.AspNetCore.Http.HttpResponse does NOT support StatusDescription property and End() method.


Can you provide an updated, working demo for asp.net core?



1 Reply

SP Sureshkumar P Syncfusion Team March 25, 2022 01:06 PM UTC

Hi Mimisss, 
 
We suggest you use the below two properties and method to resolve your facing issue. we will check and update our documentation. The changed will publish any one of our upcoming updates. 
 
Use the Microsoft.AspNetCore.Http. HttpResponse.StatusCode instead of System.Web.HttpContext.Current.Response.StatusDescription 
Also use Microsoft.AspNetCore.Http. HttpResponse. RegisterForDispose() instead of System.Web.HttpContext.Current.Response.End() 
 
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon