Upload assets to Cloudflare R2?

Hi there,
Is it possible to upload asset files using Cloudflare R2? If it is possible to do it, is there any code or clue on how to do it?

Thank you

I found your post with google, i managed to fix it by editing cloudstorage boostrap file when AWS client is init, to add, http ssl verify to false:

                $client = new Aws\S3\S3Client(array_merge([
                        'credentials' => [
                            'key'    => $settings['key'],
                            'secret' => $settings['secret']
                        ],
                        'region'  => $settings['region'],
                        'version' => $settings['version'] ?? 'latest',
                        'http' => [
                            'verify' => false
                        ]
                ], isset($settings['endpoint']) ? [
                    'endpoint' => $settings['endpoint']
                ] : []));

I am sure there is better way to handle this then just hardcoding this?