Skip to content
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

Include user metadata in the first insert for objects #630

Open
anmolsood21 opened this issue Feb 11, 2025 · 2 comments
Open

Include user metadata in the first insert for objects #630

anmolsood21 opened this issue Feb 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@anmolsood21
Copy link

In order to be able to use passed in user metadata for INSERT RLS policies, the user metadata should be included in the first insert request. Currently, the first insert request doesn't have any user metadata set.

See https://discord.com/channels/839993398554656828/1338777324845404262/1338777324845404262 for more context

@anmolsood21 anmolsood21 added the bug Something isn't working label Feb 11, 2025
@GaryAustin1
Copy link

This has come up before with at least 1 or 2 users.

@RickVM
Copy link

RickVM commented Feb 27, 2025

Cant see whats behind the discord link but think I might be running into this issue as well.

        const { error } = await supabase.storage
          .from(uploadUrlData.bucket)
          .uploadToSignedUrl(uploadUrlData.path, uploadUrlData.token, file, {
            upsert: true,
            metadata: uploadUrlData.metadata
          });

Results in the file being uploaded, and an object. However, none of the metadata i've set is actually set in the table. Not in the metadata or user_metadata column

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants