-
-
Notifications
You must be signed in to change notification settings - Fork 195
Closed
Labels
acceptedAccepted for further investigation and prioritisationAccepted for further investigation and prioritisationenhancementNew feature or requestNew feature or request
Description
Feature Request
Currently, the objects
schema in the Storage API schema is a light abstraction over the S3 storage. There is a metadata column in the objects
table, but it corresponds to the metadata of the S3 file and cannot be used by the user. The API does not expose any way to add related metadata to a file to the objects directly. This metadata would ideally be in JSON format to contain user-determined data. Currently, the user needs to get around this limitation by either:
- Create another table that relates this metadata to the
storage.objects
table. This dramatically complicates querying, migrations, and client usage for something that could be colocated within the same table. - Directly modify the
storage
schema to add this new functionality, potentially breaking compatibility with Supabase-controlled services and implementation.
The storage API should natively support metadata, and the API / JS clients should be updated to enable this powerful and common feature for file storage management. My proposal is to add a new column called file_metadata
to differentiate it to the current metadata
field.
jaulz, semanser, abdirahmn1, Weddin, barbinbrad and 71 moreProtonosgit, umaxfun, itsmikesharescode, y4my4my4m, NeverioDev and 4 more
Metadata
Metadata
Assignees
Labels
acceptedAccepted for further investigation and prioritisationAccepted for further investigation and prioritisationenhancementNew feature or requestNew feature or request