close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

View uploaded files in site admin

Thread began 10/27/2009 1:07 pm by jenkolaka19379118 | Last modified 10/28/2009 1:24 pm by Jason Byrnes | 1072 views | 3 replies |

jenkolaka19379118

View uploaded files in site admin

I am really confused on how to create the following.

I have a front end where a user can upload there CV. When this is uploaded i simply want to be able to download/open the file via my backend "detail.php" page via a link/button using dataassit. I have created the upload form and the datassist backend pages using the wizard but I am now stuck on the following.

how do i turn the filename from the database into a download link on my details page. I know the detail page just echos a record so im not sure how to modify it so when i click on the filename it automatically opens in e.g. word or adobe reader?

Sign in to reply to this post

Jason ByrnesWebAssist

on the results page, add a form to the results display. It will only need to have a hidden form element and a submit button.

set the name of the form to use the ID column from your recordset and leave the action blank:

php:
<form name="download_<?php echo $row_rsName["ID"]; ?>" id="download_<?php echo $row_rsName["ID"]; ?>" method="POST"  action="download_<?php echo $row_rsName["ID"]; ?>">




in the hidden form element, set the init value to the file name column from the recordset.


Add the Digital File Pro Download file server behavior. Set the folder to the same folder used as the upload location, click the lightning bolt next to file name and select the hidden form element.

Sign in to reply to this post

jenkolaka19379118

Success

Thanks a Million Jason,

That works perfectly. I used it on my details page, but I am hopeful it will work on the results page like you suggested so I can instantly view and download from many records on the results page as that would be very helpful.

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

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