The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update code example
Iniana15c67e4a069
diff --git a/apps/www/_blog/2023-04-12-storage-v3-resumable-uploads.mdx b/apps/www/_blog/2023-04-12-storage-v3-resumable-uploads.mdxindex e3247a5bd96..75140f605a6 100644--- a/apps/www/_blog/2023-04-12-storage-v3-resumable-uploads.mdx+++ b/apps/www/_blog/2023-04-12-storage-v3-resumable-uploads.mdx@@ -129,7 +129,7 @@ Using Uppy with Supabase Storage looks like this:import { Uppy, Dashboard, Tus } from 'https://releases.transloadit.com/uppy/v3.6.1/uppy.min.mjs'const token = 'anon-key'-const projectId = 'auafxsswdyhumisptuxe'+const projectId = 'your-project-ref'const bucketName = 'avatars'const folderName = 'foldername'const supabaseUploadURL = `https://${projectId}.supabase.co/storage/v1/upload/resumable`@@ -214,10 +214,12 @@ await db.withTransaction(() => {// the current server can upload to s3 at the given keyawait uploadObject();- // storage.objects stores the object metadata of all objects- // It doubles up as a way to check Authz.- // If a user is able to insert into this table, they can upload.- await db.run('insert into storage.objects(..) values(..)')+ if (isLastChunk) {+ // storage.objects stores the object metadata of all objects+ // It doubles up as a way to check Authz.+ // If a user is able to insert into this table, they can upload.+ await db.run('insert into storage.objects(..) values(..)')+ }});// the advisory lock is automatically released at this point