public function generateFileExtension(UploadedFile $uploadedFile)
    {
        // Retrieve original file name
        $filePath = $uploadedFile->getClientOriginalName();

        // Parse URL
        $fileInfo = pathinfo($filePath);

        // Return extension is available
        if (! empty($fileInfo['extension'])) {
            return strtolower($fileInfo['extension']);
        }

        throw ( new AssetsBadRequestException('Cannot detect file extension, provide it before uploading.') )->setStatusCode(400);
    }