sets the path to the server script file for flash mode
swfUrl | string | the path to the server script |
// on init state
var myVault = new dhtmlXVaultObject({
swfUrl: "server/upload_handler.php"
});
// using method
myVault.setSWFURL("server/upload_handler.php");
This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ 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.
i.e.
// tree struct
/*
/script/my_page.html
/script/dhxvault.swf
/script/server/upload_handler.php
/script/server/uploaded_files/
*/
var myVault = new dhtmlXVaultObject({
swfPath: "dhxvault.swf",
swfUrl: "server/upload_handler.php",
uploadUrl: "server/upload_handler.php"
});
added in version 2.0
Back to top