Unable to upload

Hi there,

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…

Coud you help me?

Thanks!

At first, please check your http traffic (Firefox can do that), i believe your handlers are not called at all.

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>
[/code]

What could be wrong here ?

OKay, then what does it say in the UploadHandler response?

Nothing :frowning:
Can’t see anything about UploadHandler.php…

sorry, I’ve just seen this error msg:


<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>

Yes. To use this sample, you should install php module.

Working perfectly, thanks! :slight_smile:

I have followed the exact same procedure as MDC888, and I too get the exact same errors.

MDC888 was given the advice:

Yes. To use this sample, you should install php module.

… and this seemed to clear up all his problems, but I don’t know what this advice meant.

I have PHP installed on the server. But is that what was meant? What is the “PHP module” (if not the PHP installation on my server)?

Really appreciate some advice here because I, too, would like to integrate this with verot.net script.

What has my browser - or Flash - got to do with it? This is all ajax stuff isn’t it?