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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

FileManager Upload postedfile params missing

Thread ID:

Created:

Updated:

Platform:

Replies:

145861 Jul 10,2019 11:56 PM UTC Jul 12,2019 12:31 PM UTC ASP.NET MVC - EJ 2 3
loading
Tags: FileManager
Javier Linares
Asked On July 10, 2019 11:56 PM UTC

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

Christopher Issac Sunder K [Syncfusion]
Replied On 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 


Javier Linares
Replied On July 11, 2019 05:47 PM UTC

Thank you. It works.

Christopher Issac Sunder K [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon