protected function cleanFilename($filename)
    {
        /** @var FileIDHelper $helper */
        $helper = Injector::inst()->get(HashFileIDHelper::class);
        return $helper->cleanFilename($filename);
    }
protected function cleanFilename($filename)
    {
        /** @var FileIDHelper $helper */
        $helper = Injector::inst()->get(HashFileIDHelper::class);
        return $helper->cleanFilename($filename);
    }
protected function cleanFilename ( $ filename ) { /** @var FileIDHelper $helper */ $ helper = Injector :: inst ( ) -> get ( HashFileIDHelper :: class ) ; return $ helper -> cleanFilename ( $ filename ) ; }
Performs filename cleanup before sending it back.

This name should not contain hash or variants.

@param string $filename
@return string
@deprecated 1.4.0
Performs filename cleanup before sending it back .