private function addPathToFileName($fileName, $path = '')
    {
        if (empty($path)) {
            $path = 'uploads/tx_' . $this->extKey . '/';
        }

        return $path . $fileName;
    }
private function addPathToFileName($fileName, $path = '')
    {
        if (empty($path)) {
            $path = 'uploads/tx_' . $this->extKey . '/';
        }

        return $path . $fileName;
    }
private function addPathToFileName ( $ fileName , $ path = '' ) { if ( empty ( $ path ) ) { $ path = 'uploads/tx_' . $ this -> extKey . '/' ; } return $ path . $ fileName ; }
Adds a path in front of the file name.
This is used for files that are selected in the Flexform of the front end
plugin.

If no path is provided, the default (uploads/[extension_name]/) is used
as path.

An example (default, with no path provided):
If the file is named 'template.tmpl', the output will be
'uploads/[extension_name]/template.tmpl'.
The '[extension_name]' will be replaced by the name of the calling
extension.

@param string $fileName the file name
@param string $path
the path to the file (without filename), must contain a slash at the end,
may contain a slash at the beginning (if not relative)

@return string the complete path including file name
Adds a path in front of the file name . This is used for files that are selected in the Flexform of the front end plugin .