OK, so the file is being uploaded, but the referane isnt passing over to the email.
in the upload.php page, locate the upload file server behavior code:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "imageFile", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult2", "downloadFile", "2", "[NewFileName]_[Increment]", "false", $WA_UploadResult2_Params);
}
?>
and add the fallowing after it:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$_SESSION['file1'] = $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"];
$_SESSION['file2'] = $WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"];
}
?>
then in the email, use the sessions:
<p>Display file: <?php echo($_SESSION['file1']) ?><br />
http://www.scipt.org/media/images/<?php echo($_SESSION['file1']) ?><br />
Download file: <?php echo($_SESSION['file2']) ?><br />
http://www.scipt.org/media/documents/downloads/<?php echo($_SESSION['file2']) ?><br />
</p>