To allow users to download files stored either in a dynamic manner through the File Upload trigger A trigger is a SQL procedure that performs an action when a transaction A transaction is a group of SQL statements whose effects are logically connected. Anything from simple queries to inserting, and deleting operations can be considered a transaction, as well as more complex groups of several statements which accomplish a specific task. (INSERT, UPDATE, DELETE) occurs. You can use triggers to perform validation of input data, to automatically generate a value for a newly inserted row, to read from other tables for cross-referencing purposes, or to support alerts through e-mail messages., or files that just exist on the server, MX Kollection 3 offers another server behavior A server behavior is a reusable component for server-side development. They add blocks of code to your pages for accomplishing specific tasks. Dreamweaver comes with several default server behaviors and the InterAKT extensions add many more to this list. you can use: Download File. In MX Kollection Professional there is an enhanced version of the Download File server behavior that allows counting the number of downloads for a file and/or block the download when a limit has been reached.
To use this server behavior on one of your pages, you must follow the next steps:
Open the page that will offer the file for download. If you wish to use the default generated Download link, skip this step, else create the link (button, text, image) that will start the file download and select it.
In order for the download operation to work, the folder storing the files must be visible to the web-server, or it should have read permissions on the folder and files.
If you decide to change any settings, you can do so by double-clicking the Download File server behavior displayed in the Server Behaviors tab.
This section contains the following topics: