Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: storage upsert true.

thorwebdev7111be30bc1f
diff --git a/apps/reference/docs/guides/with-nextjs.mdx b/apps/reference/docs/guides/with-nextjs.mdx
index e9bb78385df..3d40b368b08 100644
--- a/apps/reference/docs/guides/with-nextjs.mdx
+++ b/apps/reference/docs/guides/with-nextjs.mdx
@@ -701,7 +701,7 @@ export default function Avatar({ uid, url, size, onUpload }) {
let { error: uploadError } = await supabase.storage
.from('avatars')
- .upload(filePath, file)
+ .upload(filePath, file, { upsert: true })
if (uploadError) {
throw uploadError
@@ -812,7 +812,7 @@ export default function Avatar({
let { error: uploadError } = await supabase.storage
.from('avatars')
- .upload(filePath, file)
+ .upload(filePath, file, { upsert: true })
if (uploadError) {
throw uploadError