close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

download file behaviour not working

Thread began 10/29/2015 8:32 am by s.joiner74419001 | Last modified 11/06/2015 12:31 pm by Ray Borduin | 517 views | 6 replies |

s.joiner74419001

download file behaviour not working

I have applied a download behaviour to the following form:

<form method="post" enctype="multipart/form-data" name="file-e" id="file-e" action="" >
<input type="hidden" name="file-name-e" value="<?php echo $row_rsEnquiryDetail['files_e']; ?>">
<button type="submit" id="download" name="download-e" class="btn btn-default btn-xs">Download</button>
</form>

But for not the first time I can not get this to work. Once I click the submit form I just get a screen similar to the screen shot attached. Its possible it might be because of the session value and the recordset ( sql statement ) but this is something I struggle to understand.

I have attached this page ( enquiry-details.php ) and the page that has the links with url parameters ( enquiries-list.php ) that determine the content of the enquiry-details.php page. This page will eventually have numerous download behaviours but I'm only testing the 'files_e' form currently.

Attached Files
enquiries-list.php
enquiry-details.php
Sign in to reply to this post

Ray BorduinWebAssist

Do you have a url where I can view the problem? I'd like to see if the hidden file location field is being filled in correctly and if the paths all look right on the live page.

Sign in to reply to this post

s.joiner74419001

OK so i've tried this again this morning ( monday uk time ) and now when the download button is clicked, it attempts to download the file but gets stuck in download. the files I am testing with are all sound jpegs.

(see private message)

Sign in to reply to this post

Ray BorduinWebAssist

The issue now seems to be a blank line of code, which will corrupt downloads in php.... looks like line 55 might be it.

Sign in to reply to this post

s.joiner74419001

Whats wrong with line 55? what should it be?

Sign in to reply to this post

Ray BorduinWebAssist

It may have changed since your last attachment.. . but in the details page attachment above it is a blank line. Blank lines in between code chunks in php cause problems. It should be deleted.

Sign in to reply to this post

s.joiner74419001

I don't know wether to laugh or cry. After all the headaches this has caused it was a space in my code!

Thanks!

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