close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Download not working

Thread began 2/07/2013 4:38 pm by jebrandon343719 | Last modified 2/14/2013 1:18 pm by Jason Byrnes | 1797 views | 5 replies |

jebrandon343719

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 ???

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

jebrandon343719

Thanks

The file is uploaded CapitalHHealth.pdf

code attached. Thanks

Attached Files
order-sucess.zip
Sign in to reply to this post

Jason ByrnesWebAssist

2 problems i can see.


1) the download code:

php:
<?php

WA_DFP_SetupDownloadStatusStruct
("WA_DownloadResult1");
if(isset(
$_POST["Download"])){
    
WA_DFP_DownloadFile("WA_DownloadResult1""digital/""Capital H Health.pdf""[FileName]"falsefalsefalse"""""""");
}
?>




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"

Sign in to reply to this post

jebrandon343719

Still not working

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...