postDownload

The postDownload hook is triggered after a file has been downloaded with the download/downloads content element. It passes the file name as argument and does not expect a return value.

Available

from Contao 2.4.6.

Parameters

  1. string $strFile

    The file which has been downloaded (relative path from TL_ROOT).

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['postDownload'][] = array('MyClass', 'myPostDownload');

// MyClass.php
public function myPostDownload($strFile)
{
    // Do something
}

More information

References

See also

  • postUpload - triggered after a user has uploaded one or more files in the back end.

results matching ""

    No results matching ""