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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Linking to uploaded files

Thread began 1/10/2011 6:49 pm by Brad Lawryk | Last modified 1/11/2011 12:36 pm by Jason Byrnes | 1216 views | 9 replies |

Brad Lawryk

Linking to uploaded files

Okay, got my files uploading to dynamic folders no problem. Can delete them when record is deleted as well. Pretty dang slick.

But there is no way to set up a link to the document on another page on the site for download? Would like to set up a link to it on the Data Assist Results page too but can't.

Any ideas?

Brad

Sign in to reply to this post

Jason ByrnesWebAssist

On the results page, you could create a download form in the results row, you would need a hidden form element and a submit button. Set the value hidden form element to use the fileName column from the results recordset. Then add a Download File Behavior

insert -> Webassist -> File Manipulation -> Download if you have Universal Email 4 or Webassist -> File Manipulation -> Download in Form builder 2

Set the Folder to the folder that contains the files. Set the File field to use the Hidden form element.


Creating a download link on another page would be pretty similar, you just need a way to pass the file name into the download server behavior.

Sign in to reply to this post

Brad Lawryk

So I actually have to create a form to link to a file? You can't link text to a file?

Sign in to reply to this post

Jason ByrnesWebAssist

form is the simplest way, but you could do a link as well.

In the case of a link, you would want to pass the records ID as a querystring variable. then create a recordset to lookup the file name based on the ID and use the lookup recordsets fileName column in the download file behviaor.

you will also want to change the trigger from form post to query string being set. On the bindings panel, click the plus button and select URL variable to create a dynamic binding for the querystring, then in the trigger, click the lightning bolt and select the URL variable.

Sign in to reply to this post

Brad Lawryk

Using the form method when you click on the download button it just takes you to the root of the folder the page is in. Doesn't even go to the proper folder that the file is in even though it is definately set in the UI.

Sign in to reply to this post

Jason ByrnesWebAssist

Do you mean submitting the form takes you to another page? it shouldn't if the forms action is left blank.

Sign in to reply to this post

Brad Lawryk

Yes, the action is blank but when submitting the button it takes me to the root of the directory the form page is in. This I discovered only happens if the form is included in another page using Web Assist Framework.

If I go to the form page directly instead of having it included, submitting does nothing at all.

Sign in to reply to this post

Jason ByrnesWebAssist

the forms action should be set to the framework page when using it in a framework.

if it is doing nothing at all, then it is either not triggering correctly, or not finding the file at the location specified, can you send a copy of the file please.

Sign in to reply to this post

Brad Lawryk

Just heading out to a meeting but here is the page ... actually won't let me attach it (php file). I will try changing the action on it and see what happens after my meeting.

Sign in to reply to this post

Jason ByrnesWebAssist

you need to compress the file to a zip archive.

Sign in to reply to this post
loading

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