DW Add Record Behaviour and DFP
Ok, I'm not seeing what is needed to save the name of the file I am uploading.
The upload works. The other data is saved to the DB but the File field value is not saving to the DB.
Here's the insert code:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO news (newsTitle, newsArtcl, newsImage, newsRank) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['Title'], "text"),
GetSQLValueString($_POST['event'], "text"),
GetSQLValueString($_POST['imageUp'], "text"),
GetSQLValueString($_POST['seq'], "int"));
Here is the input file field:
<input type="file" name="imageUp" id="imageUp">
I've tried the value as a $_FILE also and that did not help. Any ideas?


You can drag and drop the correct way to reference the server file name from the bindings panel and use that syntax in the code. 
