SupabaseRemoteStorage

Implementation of RemoteStorage that uses Supabase as the backend storage provider.

Constructors

Link copied to clipboard
constructor(connector: SupabaseConnector)

Properties

Link copied to clipboard

The Supabase connector used to interact with the Supabase storage bucket.

Functions

Link copied to clipboard
open suspend override fun deleteFile(attachment: Attachment)

Deletes a file from the Supabase storage bucket.

Link copied to clipboard
open suspend override fun downloadFile(attachment: Attachment): Flow<ByteArray>

Downloads a file from the Supabase storage bucket.

Link copied to clipboard
open suspend override fun uploadFile(fileData: Flow<ByteArray>, attachment: Attachment)

Uploads a file to the Supabase storage bucket.