From 1eb6a97d2412dba23fc59c147ee01ab53d066662 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 12 Apr 2025 11:18:35 -0500 Subject: [PATCH] Add random suffix in blob api --- app/api/storage/vercel-blob/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/storage/vercel-blob/route.ts b/app/api/storage/vercel-blob/route.ts index 94a38050..8317accd 100644 --- a/app/api/storage/vercel-blob/route.ts +++ b/app/api/storage/vercel-blob/route.ts @@ -22,6 +22,7 @@ export async function POST(request: Request): Promise { return { maximumSizeInBytes: MAX_PHOTO_UPLOAD_SIZE_IN_BYTES, allowedContentTypes: ACCEPTED_PHOTO_FILE_TYPES, + addRandomSuffix: true, }; } else { throw new Error('Invalid upload');