uploadFile

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

Uploads a file to the Supabase storage bucket.

Parameters

fileData

A Flow of ByteArray representing the file data to be uploaded.

attachment

The Attachment metadata associated with the file.

Throws

If the attachment size is not specified.