I'm totally confused now. I tried what you suggested but still know success. I think we need to go back to basics.
Files are uploaded by our members to a folder on our server where the membership number is passed to the file name. So for example Jo Bloggs with a memb' number 100001 uploads a file. This file is then named 100001.pdf. The folder it is placed in is admin/file-uploads/.
So I want to be able to download this file.
my download server behaviour is set to:
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["download"]) || isset($_POST["download_x"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "../admin/file-uploads/", "100001_1.pdf", "[FileName]", false, false, false, "", "", "", "");
}
?>
My form is here:
<form method="post" enctype="multipart/form-data" name="download-file" id="download-file" action="" >
<input type="hidden" name="downloadFile" value="">
<button type="submit" id="download" name="download" class="btn btn-default btn-xs">Download</button>
</form>
I expect the hidden field needs a value but I am not sure what.
Attached is a screen shot of what I get when I click the button.
Where am I going wrong?