Home
english
Home
.NET Server
Java Server
.NET Client
AJAX Client
AJAX Browser
Map Drive
Pricing
Contacts
info@ithit.com



How to Modify Upload Url

By default the file is uploaded to the url at which the file will be available. For instance if you are uploading myfile.docx to the folder http://webdavserver.com/myfolder/ the file is submitted to http://webdavserver.com/myfolder/myfile.docx. If you would like to change the URL to which the file is submitted you can do this in OnBeforeUpload event:

function onBeforeUpload(oUploadSettings){
    var targetUrl = oUploadSettings.action;
    oUploadSettings.action = 'http://webdavserver.com/mypostprocessor.jsp?TargetUrl=' + targetUrl;
}
...
var ajaxFileBrowser = new  ITHit.WebDAV.Client.AjaxFileBrowser.Controller('AjaxFileBrowserContainer', 'http://webdavserver.com/', 'height: 500px; width: 500px');
ITHit.Events.AddListener(ajaxFileBrowser.GetTransferManager(), 'OnBeforeUpload', onBeforeUpload);

Selected Customers:
Country: Norway
DnB NOR Group
Country: Finland
Bank of Finland
USA
Symantec
Country: Sweden
Toyota
Country: Denmark
Danfoss Group
Country: USA
Microsoft
Country: Ukraine
Raiffeisen Bank
Country: USA
Siemens
Country: Ukraine
OTP Bank
Country: USA
Intel Corporation
Country: Austria
Austrian Federal Railways
Country: Israel
Autodesk, Inc.
Country: USA
U.S. Customs and Border Protection Agency
Home .NET Server Java Server .NET Client AJAX Client AJAX Browser Map Drive Pricing Contacts

Updated: Monday, February 01, 2010