Skip to content

Attachments Helper – Allow Multiple File Extensions #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
n0mad-d3v opened this issue Apr 18, 2025 · 0 comments · May be fixed by #269
Open

Attachments Helper – Allow Multiple File Extensions #268

n0mad-d3v opened this issue Apr 18, 2025 · 0 comments · May be fixed by #269

Comments

@n0mad-d3v
Copy link

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 n0mad-d3v linked a pull request Apr 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant