Skip to content

Attachments Helper – Allow Multiple File Extensions #268

Open
@n0mad-d3v

Description

@n0mad-d3v

Hi wonderful Powersync team 🙌

Following up on the discussion started here: https://discord.com/channels/1138230179878154300/1362146693457379572 (thanks again @benitav!), I’ve been experimenting with the Attachments helper and encountered a few bumps along the way.

Use Case: Multiple file extensions in the same bucket
I’d like to store files with various extensions in the same bucket (in Supabase, in my case). Currently, the library requires specifying a single fileExtension for each attachmentQueue, which limits us to one file type per queue, as it's passed to the watchIds method.

In my setup, I store the file extension directly in the filename on the bucket, so I don't need to append it again via the helper.

I’m not sure yet if this is a real requirement or if I’m approaching it the wrong way—but I’d love your thoughts 🤓

WDYT?

Thanks a lot, and have a great (syncing) day! ☀️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions