Upload file probleme

Hi,
I get problem when I try to upload a document in file explorer.
You find a sample with my code here and screenshot below.
Your help is appreciated.

Regards,
Anis

Attachment: screenshot__8a8ab701.rar

5 Replies

AB Ashokkumar Balasubramanian Syncfusion Team January 2, 2018 12:57 PM UTC

Hi Anis, 
 
We have checked your problem and provided images. The reported problem may be occurs due to missed the upload functionality code block on controller part or it may not running in your application, so please check this scenarios at your end. 
 
Based your requirement, we have prepared simple sample, please check the sample in below location. 
 
 
Please let us know, if the provided information’s are helpful to resolve your problem or not. 
 
Regards, 
Ashokkumar B. 
 



AN Anis January 2, 2018 03:18 PM UTC

Hi,
No this does not help me.
I have provided a sample with the problem, can you please just fixed. I get the code in the sample from the syncfusion team after encountering a problem in FileExplorer.

Regards,
Anis 


AB Ashokkumar Balasubramanian Syncfusion Team January 4, 2018 01:39 PM UTC

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. 



AN Anis January 5, 2018 07:16 AM UTC

Thank you for your help.

Regards,
Anis


AB Ashokkumar Balasubramanian Syncfusion Team January 8, 2018 04:11 AM UTC

Hi Anis, 
 
Most welcome, please let us know if you need any further assistance. 
 
Regards, 
Ashokkumar B. 


Loader.
Up arrow icon