protected function getReplacingFile()
    {
        if ($this->replacingFile === false) {
            $replacingFile = null;
            $fID = $this->request->request->get('fID', $this->request->query->get('fID'));
            if ($fID && is_scalar($fID)) {
                $fID = (int) $fID;
                if ($fID !== 0) {
                    $replacingFile = $this->app->make(EntityManagerInterface::class)->find(File::class, $fID);
                }
            }
            $this->setReplacingFile($replacingFile);
        }

        return $this->replacingFile;
    }