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

FileManager Upload postedfile params missing

Good night
I am trying to load a file from FileManager with the following configuration:
The parameters are empty in Upload method
I need most is the path, because I can get the file from the Request


the path is not delivered in the querystring either

The file exists in Request 



When I do not enter the configuration for upload:

There's never a request for args.ActionType = "Upload" in FileActionDefault Method
Syncfusion performs the following POST

Obviously the FileActionDefault method with that signature (path,actiontype,selecteditems) not exists

The only methods that I have are:



The version I'm using is: 16.4.0.52


Ty

3 Replies

CI Christopher Issac Sunder K Syncfusion Team July 11, 2019 12:57 PM UTC

Hi Javier,  

Greetings from Syncfusion support. 

We have checked the reported issues at our end. We suggest you to append the syntax format “{0}”  at the end of upload action URL so that path will be passed to server end automatically. Please refer following code block, this will be helpful to solve your problem.  
 
  $('#fileExplorer').ejFileExplorer({ 
                 path: "~/content/images/FileExplorer/", 
                 ajaxAction: "/FileExplorer/FileActionDefault", 
                 ajaxSettings: { 
                     upload: { 
                         url: "/FileExplorer/Upload{0}", dataType:"jsonp" 
                     } 
                 }  
             }); 

To get the uploaded file details , we suggest you to pass the FileExplorerParams as parameters of Upload action as shown below 

Controller: 

public ActionResult Upload(string path, FileExplorerParams args, string action) 
        { 
            opeartion.Upload(args.FileUpload, args.Path); 
            return Json(""); 
        } 

Now you will get the path and file details as shown below 

 

File details: 

 

We have attached a sample for your reference which can be downloaded from the below given link 


Please let us know if you have any concerns. 

Thanks,
Christo 



JL Javier Linares July 11, 2019 05:47 PM UTC

Thank you. It works.


CI Christopher Issac Sunder K Syncfusion Team July 12, 2019 12:31 PM UTC

Hi Javier, 

We are glad to hear that the issue has been resolved at your end. Please get back to us if you require any further assistance. 

Thanks,
Christo 


Loader.
Live Chat Icon For mobile
Up arrow icon