Check documentation for the latest version of dhtmlxSuite setSWFURL DHTMLX Docs


sets the path to the server script file for flash mode

void setSWFURL(string swfUrl);
swfUrlstringthe path to the server script


// on init state
var myVault = new dhtmlXVaultObject({
    swfUrl: "server/upload_handler.php"
// using method


This API page is for Vault v2.5. Please go to to see API reference for the current version of dhtmlxVault.

The path should be set relative to the client swf file. Since latest versions of flash in Internet Explorer this path is relative to the index page, so we recommend you keep the index.html page and swf file in the same folder. In this case swfUrl will be relative both to the swf file and to the index page.


// tree struct
var myVault = new dhtmlXVaultObject({
    swfPath: "dhxvault.swf",
    swfUrl: "server/upload_handler.php",
    uploadUrl: "server/upload_handler.php"
Change log

added in version 2.0

Back to top