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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change AJAX upload url setting

Thread ID:





124729 Jun 25,2016 02:33 PM UTC Jun 28,2016 05:02 AM UTC JavaScript 3
Tags: ejFileExplorer
David Barrett
Asked On June 25, 2016 02:33 PM UTC

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 11:40 AM UTC

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 11:49 AM UTC

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

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

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.

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