I’m trying to modify your excellent upload class, mixing it with php veronet one.
But before to do that, I’m trying to make the basic dhtmlxVault working, and I really feel silly about that, because I’m always getting the “error” message while trying to upload.
My config:
Web server with apache (other uploading solutions working well)
PHP5.3
What I did :
Put the folders “codebase” and “samples”, and index.html file in the same folder (upload3),
Put the files “GetIdHandler.php”, “GetInfoHandler.php”, “UploadHandler.php” on the same level as index.html,
Created an ‘uploads’ folder on the same level,
Everything with 755 rights
Changed the UploadHandler.php file to $target_path = ‘uploads/’;
Tried with a real path :
$target_path = ‘/web/xxx/beta/upload3/uploads/’;
Error message : just “error” under each file
I’m really getting crazy, and running out of time for this time of development…
Well, it appears that GetidHandler.php is sending the var id with the value 2.
GetinfoHandler.php is also getting the session id.
And here is the source code of index.html:
[code]
Upload Control
<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("UploadHandler.php", "GetInfoHandler.php", "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>
DHTML Vault sample
<h1>Initialize object on page</h1>
<p>You can place this JavaScript file upload anywhere on your web page, attaching it
to any div object.<br>
Set up server handlers for your server type.<br><br>
Click "Add" button to select files.
</p>
<div id="vault1">
</div>
<b>Fatal error</b>: Call to undefined function uploadprogress_get_info() in <b>/home/web/naviguimmo/beta/upload3/GetInfoHandler.php</b> on line <b>29</b>