create a record set to return the file name.
add a table to the page with 1 row and 2 columns.
in the column on the left, use the bindings panel and drag the binding for the file s title.
in the column on the right, add a form, a hidden form element and a submit button. for the hidden form element, set the initial value to use the file name column from the recordset.
now, in the tag selector at the bottom of the screen, select the TR tag for the table row. go to the server behaviors panel, click the plus button and select repeat region, select your recordset and set it to display all rows..
at run time, this will create a row in the table for each file in the database with a download button for each one.
now add the download file behavior. Use the Submit button pressed trigger.
for the file name, click the lightning bolt and select the hidden form element.
for the file folder, select the folder the files are stored in.
the forms submit button will now trigger the download behavior, and the download behavior will the name of the file to download from the hidden element.