-
Notifications
You must be signed in to change notification settings - Fork 538
Open
Labels
bugSomething isn't workingSomething isn't workingstorage-jsRelated to the storage-js library.Related to the storage-js library.
Description
Trying to upload some meta-data along with uploading the file and it's not working.
I am doing this
supabase.storage.from('bucket-name').upload('some-file-anme', file, {
metadata: { ...some data }
})
I have also tried
const fileBody = new FormData();
fileBody.append('metadata', JSON.stringify({ name: 'data' }));
fileBody.append('', file);
supabase.storage.from('bucket-name').upload('some-file-anme', fileBody )
I see that it doesn't support any metadata type so please let me know how to add a metadata while uploading the file.
I need the metadata for some RLS policies later.
Thanks alot.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingstorage-jsRelated to the storage-js library.Related to the storage-js library.