thephpleague / flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications
https://github.com/thephpleague/flysystem
MIT License
361 stars 68 forks source link

Use with Supabase Storage #125

Closed Snowbaha closed 1 year ago

Snowbaha commented 1 year ago

Hello,

I am searching a way to use it with Supabase, I tried the AsyncAWS and AWS methods but it doesn't work for me.

supabase_client:
    class: 'AsyncAws\S3\S3Client'
    arguments:
        - endpoint: 'https://MYIDFROMSUPA.supabase.co/storage/v1/object/'
          accessKeyId: 'MYIDFROMSUPA'
          accessKeySecret: '%env(SUPA_TOKEN)%'
          region: 'eu-central-1'

and

    supabase.storage.products.images:
        adapter: 'asyncaws'
        visibility: public # Make the uploaded file publicly accessible in S3
        options:
            client: 'supabase_client'
            bucket: 'products.images'

Do you have any ideas?

I asked in their discussion too but it is not possible with S3 Bucket for now....

maxhelias commented 1 year ago

Hello, I'm afraid you won't get a better answer here. This doesn't seem possible without going through Supabase.