The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: add demo for custom metadata (#37570)
Nicholas Barrow768f7819c750
diff --git a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdxindex a7ac47b3031..99fec0b0979 100644--- a/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx+++ b/apps/docs/content/guides/storage/uploads/resumable-uploads.mdx@@ -57,6 +57,9 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supaobjectName: fileName,contentType: 'image/png',cacheControl: 3600,+ metadata: JSON.stringify({ // custom metadata passed to the user_metadata column+ yourCustomMetadata: true,+ }),},chunkSize: 6 * 1024 * 1024, // NOTE: it must be set to 6MB (for now) do not change itonError: function (error) {@@ -159,6 +162,7 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supa"objectName","contentType","cacheControl",+ "metadata",], // Metadata fields allowed for the uploadonError: (error) => console.error("Upload error:", error), // Error handling for uploads}).on("file-added", (file) => {@@ -168,6 +172,9 @@ Instead of `https://project-id.supabase.co` use `https://project-id.storage.supabucketName, // Bucket specified by the user of the hookobjectName: file.name, // Use file name as object namecontentType: file.type, // Set content type based on file MIME type+ metadata: JSON.stringify({ // custom metadata passed to the user_metadata column+ yourCustomMetadata: true,+ }),};});};