Still not working.
I've been working on this all day, and I still don't understand whats wrong.
Would someone mind looking at my code, to tell me where the issue lies. I'm following the instructions verbatim, reading, and re-reading them to make sure I haven't missed a step, yet this product doesn't seem upload a file. I'm beeen watching both the global WA debug and the php debug, and it just doesn't work..
<?php require_once('../../../Connections/conUDS.php'); ?>
<?php require_once("../../../WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_conUDS, $conUDS);
$query_rsAttach = "SELECT * FROM supportgrid";
$rsAttach = mysql_query($query_rsAttach, $conUDS) or die(mysql_error());
$row_rsAttach = mysql_fetch_assoc($rsAttach);
$totalRows_rsAttach = mysql_num_rows($rsAttach);?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "uploads",
'FileName' => "[FileName]",
'DefaultFileName' => "../../../images/misc/space.gif",
'ResizeType' => "0",
'ResizeWidth' => "0",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "attachment", "0", "", "false", $WA_UploadResult1_Params);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../../../WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Upload Form</title>
</head>
<body>
<h1>Test Upload Form</h1>
<div id="test1_ProgressWrapper">
<form action="" method="post" name="test" id="test1">
<input name="attachment" type="file" id="attachment" />
<input name="submit" type="submit" id="submit" value="submit" />
</form>
</div>
<h2>WA Debug Info</h2>
<div>
<?php echo WA_DFP_AllUploadsDebug(); ?>
</div>
<div id="test1_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('test1', 'test1_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:CaboSunset']);
</script>
<div id="test1_ProgressMessage" >
<p style="margin:10px; padding:5px;" ><img src="../../../WA_DigitalFilePro/images/cabo-largespin.gif" alt="" title="" style="vertical-align:middle;" /> Please wait</p>
</div>
</div>
<h2>PHP Debug</h2>
<div>
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
</div>
</body>
</html>
<?php
mysql_free_result($rsAttach);
?>