1.2releasedForce Download

When this event is attached to a page, it enables the page to force a download.

Clone URLhttps://github.com/TwistedInteractive/force_download.git

Add as a submodulegit submodule add https://github.com/TwistedInteractive/force_download.git extensions/force_download --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
1.11.11.11.2NoNoNoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Force Download

When this event is attached to a page, it enables the page to force a download. The download can be triggered by adding the parameter file to the URL:

<a href="/download/?file=workspace/uploads/manual.pdf">Download manual</a>

Security

To prevent that anyone can download any file from your website you have to set which folders are allowed for visitors to download files of. Otherwise evil people can download your config-settings for example simply by changing the URL in the browser bar to: /download/?file=manifest/config.php.

To do this, you need to add a list of trusted locations to the 'Force Download'-section on the preferences page.

Download the current page

You can also download the page itself, by adding the parameter download to the URL. The value of this parameter will be the name of the file. For example:

<a href="/sheet/?download=sheet.xml">Download sheet in XML-format</a>

Version history

Requires Symphony 2.3

Symphony 2.0.x to 2.2.5