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

Add file_metadata field to objects schema #439

Open
bombillazo opened this issue Feb 15, 2024 · 18 comments
Open

Add file_metadata field to objects schema #439

bombillazo opened this issue Feb 15, 2024 · 18 comments
Labels
accepted Accepted for further investigation and prioritisation enhancement New feature or request

Comments

@bombillazo
Copy link

bombillazo commented Feb 15, 2024

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.

@fenos
Copy link
Contributor

fenos commented Feb 19, 2024

@bombillazo I generally agree that allowing Storing arbritary metadata could be a nice feature to have in Storage.
Will add this on the roadmap! 🎉

@fenos fenos added accepted Accepted for further investigation and prioritisation enhancement New feature or request labels Feb 19, 2024
@logemann
Copy link

logemann commented Mar 25, 2024

strong agree on adding custom metadata per storge object. Having to maintain a mirror table just for additional data is a pain, especially the lack of usable triggers to keep both sides in sync.

@dmbr0
Copy link

dmbr0 commented Mar 27, 2024

+2 for this. I would definitely like this. would like to tag files that are being uploaded.

@Razikus
Copy link

Razikus commented Mar 28, 2024

+1

@zhanziyang
Copy link

+1 for this

@joe-ashwell
Copy link

Also +1

@oleva
Copy link

oleva commented Apr 5, 2024

Would make multi tenant systems a lot easier to manage. Ie. tenants quota. | +1

@lecramr
Copy link

lecramr commented Apr 5, 2024

+1

@danvoyce
Copy link

+1000000000

I'm currently having to add metadata into my file names, so would love to clean up this mess!

@momongah
Copy link

momongah commented Apr 23, 2024

+1 for this. I'm currently working with AI generated images and need to store the prediction parameters that generated each image. Otherwise I gotta use AWS S3 cuz I know they have metadata feature.

@KindArt
Copy link

KindArt commented Apr 25, 2024

+1

@ykoitzsch
Copy link

+1 looking forward to this

@vatanak10
Copy link

+1

1 similar comment
@loringabriel
Copy link

+1

@PremchandGat
Copy link

+1 looking for same

@normanyu
Copy link

This would improve my workflow with supabase as well. Right now, I need to keep a separate table and keep it in sync every time i upload, move or delete objects.

@Gbillington1
Copy link

+1

I switched from self hosting to supabase, closed down my own s3 bucket to use supabase storage, and now I can't store metadata on the objects... Please please please add this functionality!

@Protonosgit
Copy link

+1 seems very helpful!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted for further investigation and prioritisation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests