Upload files - image not stored in map on server
i made a simple form with 1 file upload field.
the name of the image is stored in the mysql database, that is OK.
But the image itself is not stored in the map 'w-cloud' on the server. What could be the problem?
This is the code:
<?php require_once('../Connections/testconn.php'); ?>
<?php require_once("../webassist/file_manipulation/helperphp.php"); ?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php
$Recordset1 = new WA_MySQLi_RS("Recordset1",$testconn,1);
$Recordset1->setQuery("SELECT * FROM beeldopladen");
$Recordset1->execute();
?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../w-cloud/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "0",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(($_SERVER["REQUEST_METHOD"] === "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)){
WA_DFP_UploadFiles("WA_UploadResult1", "beeld", "0", "", "false", $WA_UploadResult1_Params);
}
?>
<?php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$InsertQuery = new WA_MySQLi_Query($testconn);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "beeldopladen";
$InsertQuery->bindColumn("beeld", "s", "".($_POST['beeld']) ."", "WA_BLANK");
$InsertQuery->saveInSession("beeldopladenID");
$InsertQuery->execute();
$InsertGoTo = "succes.php";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Naamloos document</title>
</head>
<body>
<form name="form1" method="post" action="">
<p>
<input name="beeld" type="file" id="beeld" onchange="" />
</p>
<p>
<input type="submit" name="submit" id="submit" value="Verzenden">
</p>
<input type="hidden" name="MM_insert" value="form1">
</form>
</body>
</html>