Hi.
I’m dowloaded the dhtmlxVault std 1.6 and now I’m trying the component.
It didn’t work fine because done the upload but it don’t evidence me the finish of the transmission.
I find the file on my server but the bar continuing to work and I don’t receive any segnalation.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="codebase/dhtmlxvault.js"></script>
<link rel="stylesheet" type="text/css" href="codebase/dhtmlxvault.css">
</head>
<body>
<div id="vaultDiv"></div>
<script>
vault=new dhtmlXVaultObject();
vault.setImagePath("codebase/imgs/");
vault.setServerHandlers("codebase/handlers/php/UploadHandler.php",
"codebase/handlers/php/GetInfoHandler.php",
"codebase/handlers/php/GetIdHandler.php");
vault.setFilesLimit(1);
vault.onAddFile = function(fileName) {
var ext = this.getFileExtension(fileName);
if (ext != "jpg" && ext != "jpeg") {
alert("You may upload only image files (jpg, jpeg). Please retry.");
return false;
}
else return true;
};
vault.onUploadComplete = function(files) {
var s="";
for (var i=0; i<files.length; i++) {
var file = files[i];
s += ("id:" + file.id + ",name:" + file.name + ",uploaded:" + file.uploaded + ",error:" + file.error)+"\n";
}
alert(s);
};
vault.create("vaultDiv");
</script>
</body>
</html>
Hi,
Is it a small or a large file? Is it just one file in a row? Firstly, try to call “codebase/handlers/php/GetInfoHandler.php” from your browser to see if it works.
Hi Fedor.
The file is small (about 80 kByte) and the upload works fine.
I found the file under the folder that is configured in UploadHandler.php
During the upload, if I execute GetInfoHandler.php, It returnes me a value (first -1 then 100), after the upload the bar countinuosly move and the event onUploadComplete don’t rise.
You didn’t saw the response at your link becouse I don’t show the errors ion the server (is also a production server)…
I’ve modified temporarly the ini settings and now the showing errors.
Now, If try to verify you can see the response.