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);

Next Article:

Uploading Files to WebDAV Server in Internet Explorer 9 and Earlier Versions