File Download not working
I have inserted a server behavior for a file down load. Everything looks fine. When the page loads, nothing happens???
I have done this so may times before?? What would be stopping the file from downloading ???
I have inserted a server behavior for a file down load. Everything looks fine. When the page loads, nothing happens???
I have done this so may times before?? What would be stopping the file from downloading ???
either the trigger trigger for the download is not occuring, or the download file does not exist at the path you specified.
send a copy of your page please so i can see the code.
2 problems i can see.
1) the download code:
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["Download"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "digital/", "Capital H Health.pdf", "[FileName]", false, false, false, "", "", "", "");
}
?>
is set to use a form element named "Download" for the trigger. This would be fine if your submit button where a standard button, but you have used an image element type so:
if(isset($_POST["Download"])){
should be:
if(isset($_POST["Download_x"])){
2) In the download code, the file name is:
"Capital H Health.pdf"
but your link does not contain spaces, it should be:
"CapitalHHealth.pdf"
This still doesn't work. I have tried changing to normal button etc...
I have been getting this error message when opening pages (other sites as well), maybe its a clue - see attached
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
supporthistory.php
If anyone else is experiencing this same issue, please append to this thread.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.