Skip to content

Attachments Helper โ€“ Allow Multiple File Extensionsย #268

@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