$sFileName = $this->attachment->UploadPath.“/”.$this->attachment->ViewValue;
$LinkUrl = “javascript:void(0);ConfirmUploadDoumentsMsg('”.$sFileName.“‘,’”.$this->Account_Id->CurrentValue.“', '”.$sAccountName.“',‘msg 1’, '”. “msg 2” .“')” ;
$sFileName holds the correct value in the PHP code: “uploads/AAMI/documents/10001236/IMG_1260.jpg”
when passed to the JS Function
function ConfirmCreateDocumentsPackageMsg(sAccountId, sAccountName, sTitle, sContent) { // confirmation
alert(sFileName);
}
sFileName is incorrect: uploads/AAMIdocuments@01236/IMG_1260.jpg
some parts of the pathname has been mangled.
not sure what’s happening, i pass variables similar to this, but haven’t encountered this issue, in particular this is the first time i’ve attempted to pass a directory path.