Simple form, 1 field, pdf won't upload
I don't see why this simple form work?
<?php require_once("../webassist/file_manipulation/helperphp.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../AdvHTML_Upload/pdfs/",
'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((((isset($_POST["Upload"]))?$_POST["Upload"]:"") != "")){
WA_DFP_UploadFiles("WA_UploadResult1", "newpdf", "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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form action="ck-confirm.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label>
<input type="file" name="newpdf" id="newpdf" />
</label>
<label>
<input type="submit" name="Upload" id="Upload" value="Upload" />
</label>
</form>
</body>
</html>