protected function getExtension(UploadedFileInterface $upload)
    {
        $filename = $filename = $upload->getClientFilename();

        return strtolower(pathinfo($filename, PATHINFO_EXTENSION));
    }