powersync.dart icon indicating copy to clipboard operation
powersync.dart copied to clipboard

Attachments Helper – Allow Multiple File Extensions

Open n0mad-d3v opened this issue 8 months ago • 0 comments

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! ☀️

n0mad-d3v avatar Apr 18 '25 04:04 n0mad-d3v