close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Digital File Pro download file

Thread began 12/29/2014 11:55 am by z.marko348039 | Last modified 1/16/2015 7:30 am by Jason Byrnes | 3876 views | 32 replies |

z.marko348039

Digital File Pro download file

I want to have a webpage that has a field to enter a password, then the user can click a "Download" button to receive a pdf file.

So, Digital File Pro would be used for the file download. What is used to set up a password field? We don't have a database and we don't need to track the users. I'm hoping to keep this project very simple.

Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

You could store a session variable for the password, and use a conditional region to only show the download link if that session variable has the correct value.

Sign in to reply to this post
Did this help? Tips are appreciated...

z.marko348039

That sounds like it will work, thanks. I'm not knowledgeable on how to store a session variable or how to use a conditional region and could use some help.

I have dreamweaver cs6 and webassist Data Bridge and Design Extender if that helps.

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

You can use the "set session value" server behavior to save the value from the submitted password field into a session variable.

Then you can create a rule with security assist rules manager that checks the value of the session variable you created to make sure it matches the expected password.

From that point the Show If server behavior and Restrict Access to page server behavior can be used to conditionally show a download button or restrict access to specific pages based on the rule you created in step 2.

Sign in to reply to this post
Did this help? Tips are appreciated...

z.marko348039

Thank you.

Also, I would like to ask if I can keep the pdf in a folder on the root directory of the website. And use Digital File Pro to connect to that location to then download the file. In other words, I don't need a database?

Also, will the password field and the download button be on one web page or two separate web pages? What I'm wondering is if the password field is one page, then after the password is entered, does it go to another web page where the user finds the download button for the pdf?

Sign in to reply to this post

Ray BorduinWebAssist

You won't need a database. It could be done on the same or different pages, either would work.

Sign in to reply to this post
Did this help? Tips are appreciated...

z.marko348039

I'm ready to start setting up my pdf download and password access project. I thought I would start with just the download of the pdf first.

Computer details: PC / Windows 7, Dreamweaver CS6, DataBridge ver 1.2.1
Web page details: webpage is listed in the private message area along with the php script and the html of the download form.
Uploaded to host server: webpage, downloads folder with the pdf file, webassist folder with a file_manipulation folder and the helperphp.php file

I followed the WA Web Development Tutorial,Getting Started With Digital File Pro 2 as closely as I could. There were some differences. But the download is not working on the live web page.

In DW cs6, I opened the download wizard with WebAssist > File Manipulation > Download. Is that is correct?
In the wizard I tried a couple of triggers, but settled on the default trigger: Any form post. Is that also correct?
And, I used the "save as file name" to make the name more user friendly.

I appreciate having your help on this! Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

you settings look correct except for the button

input type button does not do anything, it is normally used to clear a form or with jQuery

change the input type to submit:
<input name="download" type="submit" value="Download PDF">

Sign in to reply to this post

z.marko348039

Thank you, that was the solution.
By the way, the download will work on pc and mac computers both?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, it should work on both PC and Mac.

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