public function deleteFile(FileModelInterface $model)
    {
        $url = $model->getUploadDir() . DS . $model->getFile();

        @unlink(str_replace('..', '', $url));

        $model->delete();
    }