Because i use a form field as being the name of the upload folder i used below code inside the dataAssist insert behavior for the file field:
<?php echo ((isset($_POST["venue_name"]))?$_POST["venue_name"]:"")."/".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>
It is working perfect, just want to know if this is the correct way to do it.
Thanks.