Author:
TwistedInteractive
Version:
1.2
Released:
9 May 2012
Category:
Events

Browse

Description

Force Download

please note: if you're using Symphony lower than 2.3, download the 1.1-tag

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>

Repository

http://github.com/TwistedInteractive/force_download

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details