Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for CloudflareR2 Storage adaptar #97

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
minor changes
  • Loading branch information
Tushar98644 committed Oct 25, 2023
commit b1944abf74ce0e3f969da91184e02c3c2cedcecb
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
strategy:
fail-fast: false
matrix:
devices: [BackblazeTest, DOSpacesTest, LinodeTest, LocalTest, S3Test, WasabiTest]
devices: [BackblazeTest, DOSpacesTest, LinodeTest, LocalTest, S3Test, WasabiTest , CloudflareR2Test]
Tushar98644 marked this conversation as resolved.
Show resolved Hide resolved

steps:
- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Device/CloudflareR2.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CloudflareR2 extends S3
const AUTO = 'auto';

/**
* CloudflareR2 Constructor
* Cloudflare R2 Constructor
*
* @param string $root
* @param string $accessKey
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Storage

const DEVICE_LINODE = 'linode';

const CLOUDFARE_R2 = 'cloudflare-r2';
const CLOUDFARE_R2 = 'cloudflarer2';

/**
* Devices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Utopia\Storage\Device\CloudflareR2;
use Utopia\Tests\Storage\S3Base;

class CloudfareR2Test extends S3Base
class CloudflareR2Test extends S3Base
{
protected function init(): void
{
Expand Down