public function addUniqueIdToFilename($fileName, $prefix = null, $moreEntropy = true)
    {
        $file = new File($fileName);

        $directory = ltrim(str_replace($this->container->getParameter('kernel.project_dir'), '', $file->dirname), '/');

        return ($directory ? $directory.'/' : '').$file->filename.uniqid($prefix, $moreEntropy).($file->extension ? '.'
                                                                                                                            .$file->extension : '');
    }