\DownloadExtension
Controller extension to force a direct download of a file. Works out of the box using the CleanFile.DownloadLink.
Add this extension to a Controller instance
by adding this to your _config.php:
Object::add_extension('Page_Controller', 'DownloadExtension');
- Author: arillo
Synopsis
class DownloadExtension
extends Extension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public SS_HTTPRequest download()
Hierarchy
Extends
- Extension
Members
private
- $allowed_actions
Methods
public
- download() — Controller action for downloading a Clean File.