Hi Anis,
Thanks for your update.
We were able to reproduce your “FileExplorer not render” problem at our end. The reported problem occurs due to on automatically validating the AntiForgeryToken in your application. So kindly use the below code to validate the antiforgery token in FileExplorer instead of using AutoValidateAntiforgeryTokenAttribute service.
//Need to remove
|
[FilterConfig.cs]
filters.Add(new HandleErrorAttribute());
filters.Add(new Serenity.Services.AntiforgeryCookieResultFilter());
//filters.Add(new Serenity.Services.AutoValidateAntiforgeryTokenAttribute()); |
For Validating AntiforgeryToken in FileExplorer use the below code block.
|
public ActionResult FileActionDefault(FileExplorerParams args1)
{
HttpCookie myCookie = new HttpCookie("__RequestVerificationToken");
myCookie = Request.Cookies["__RequestVerificationToken"];
var val = Request["__RequestVerificationToken"];
//FileOperations
} |
We have checkd the upload file operation problem in your provided application, upload operation is working fine for after using above solution, please check the below image.
For your convenience, we have modified your provided sample with above solution, please find the sample in below location.
Please let us know, if you have any concern on this.
Regards,
Ashokkumar B.