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.
Unfortunately, activation email could not send to your email. Please try again.

Change AJAX upload url setting

Thread ID:





124729 Jun 25,2016 10:33 AM Jun 28,2016 01:02 AM JavaScript 3
Tags: ejFileExplorer
David Barrett
Asked On June 25, 2016 10:33 AM

When I change the ajaxSettings upload url, the data that usually gets passed (path, etc) is no longer passed with it. Is there a variable I can use in the ajaxSetting url field that will add the path info so that I can still figure out where to put the new file or do I have to use the default ajax endpoint to get that data?

Balamurugan P [Syncfusion]
Replied On June 27, 2016 07:40 AM

Hi David, 
Thanks for using Syncfusion Products. 
We have analyzed your reported problem ”When I change the AjaxSettings upload url, the data that usually gets passed (path, etc) is no longer passed with it”. Here path and other details will be passed to server end automatically, if you append the syntax format “{0}”  at the end of upload action URL. Please refer following code block, this will be helpful to solve your problem. 
Code example [JS] 
                path: "http://mvc.syncfusion.com/ODataServices/FileBrowser/", 
                ajaxSettings: { 
                    upload: { 
                        url: "http://mvc.syncfusion.com/OdataServices/fileExplorer/fileoperation/Upload{0}" 
Please let us know if you require any further assistance, we will happy to assist you. 

Balamurugan P 

David Barrett
Replied On June 27, 2016 07:49 AM

Thanks for the quick reply, it worked just like I wanted !!

Balamurugan P [Syncfusion]
Replied On June 28, 2016 01:02 AM

Hi David, 
We are glad to know that the solution works. Please let us know if you required any other concern on this. we will be happy to assist you. 



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.

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.