Description
Feature request
Problem(s)
-
Currently when uploading via
supabaseClient.storage.from(bucket).upload(filePath, file)
the result is theKey
which seems to beKey = $bucket/$path
which quite honestly is extremely unhelpful. Why not return an object like{ bucket_id, path, id }
? Especially since I couldn't find anything related to thisKey
- it's not a primary key as to my knowledge -
When deleting objects via
storage.from...remove
we actually do get a proper result returned (even though that's weird because for deletion I would only expect aminimal
version, e.g.deletionCount
or just the{id}
or a boolean. -> hence: inconsistent as compared to my first point and not really easy to follow up to. -
The storage functions should be properly documented, not just being samples in the Templates (like
storage.foldername(objects.name)
) -
This last one is an architectural question / issue: i feel like the objects table is holding too much of information considering the fact that someone who "simply should be able to view an image" shouldn't be able to retrieve the
created_at
ormetadata
column necessarily. That might be none of their business, also especially looking atowner
andlast_accessed_at
-> have you thought about making theobjects
table more minimal likeid, bucket, name
and having a related table with the other data to separate concerns?