File Manipulation Uploads in UE
Hi, using Dynamic Suite I wanted to add a file upload to both my insert & update pages. Do I need to store images in a db table? Currently I have tblcases that stores new cases, at the end of the insert/update pages I want to add the upload feature. Do I need to create another table and link it to tblcases by CaseID to store all documents?
So far I have added the upload behaviour to an insert form in testing but the file never uploads, I note the path becomes c:\fakepath\filename.txt after selecting the file, using IE & Chrome?
Code inserted by DA:
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "CaseDocuments/",
'FileName' => "[FileName]_[Increment]",
'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"){
WA_DFP_UploadFiles("WA_UploadResult1", "doc_upload", "0", "", "false", $WA_UploadResult1_Params);
}
?>
Not sure if I actually have DFP or not, I can only get this wizard through Insert | WebAssist | File Manipulation | Upload
Thanks.


your insert form should insert the case data to the case table, then in another insert behavior, it can insert the case ID using the session that is created from the first insert to the files table and use the Server File Name binding from the WA Uploaded Files binding group to insert the file name to the files table. 
