same problem
This is the same problem I have. I have set the default value to the value of the image field from the recordset, yet whenever I upload and nothing is set in the file field, it overwrites the existing image with nothing.
Here is the code:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Update_x"])){
WA_DFP_UploadFile("WA_UploadResult1", "newhousepic", "".$row_WADAHOUSE['housepic'] ."", "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"] ."/images/HOUSEPICS/", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "0", "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."".$WA_DFP_UploadStatus["WA_UploadResult1"]["fileExtension"] ."", "300", "true", "500", "500");
}
?>
Please help?