Storage overview
Ce contenu n’est pas encore disponible dans votre langue.
massi.storage gives you list/upload/download/delete/signed-URL methods against the mediated storage API — no MinIO/S3 credentials are ever involved on the client side.
Unlike massi.from(), storage isn’t scoped to a database — buckets belong to the project, not to any one db/stage combination.
Signature
massi.storage.from(bucket: string): StorageBucketApiReturns a StorageBucketApi scoped to one bucket, with .list(), .upload(), .download(), .remove(), and .createSignedUrl().
Example
const { data, error } = await massi.storage .from('avatars') .upload('users/42/photo.txt', file)