Hi,
i’ve a problem with file uploading.
GetIdHandler result:
GetInfoHandler first result:
GetInfoHandler second result:
After the second call of GetInfoHandler pop up a message box with this text:
I’ve tried with two different S.O. (Win XP & Ubuntu), two different version of Apache & PHP (on the same machine).
This is the code:
[code]
<title>Upload Control</title>
<link rel="stylesheet" type="text/css" href="codebase/dhtmlxvault.css" />
<script language="JavaScript" type="text/javascript" src="codebase/dhtmlxvault.js"></script>
<script language="JavaScript" type="text/javascript">
var vault = null;
function doOnLoad() {
vault = new dhtmlXVaultObject();
vault.setImagePath("codebase/imgs/");
vault.setServerHandlers("codebase/handlers/UploadHandler.php", "codebase/handlers/GetInfoHandler.php", "codebase/handlers/GetIdHandler.php");
vault.create("vault1");
}
</script>
<style>
body {font-size:12px}
.{font-family:arial;font-size:12px}
h1 {cursor:hand;font-size:16px;margin-left:10px;line-height:10px}
xmp {color:green;font-size:12px;margin:0px;font-family:courier;background-color:#e6e6fa;padding:2px}
.hdr{
background-color:lightgrey;
margin-bottom:10px;
padding-left:10px;
}
</style>
<div id="vault1">
</div>
[/code]
The handlers are your default handlers with no modification.
The upload directory have chmod 777.
Thanks in advace.