Add random suffix in blob api

This commit is contained in:
Sam Becker 2025-04-12 11:18:35 -05:00
parent 26a8dd2d0a
commit 1eb6a97d24

View File

@ -22,6 +22,7 @@ export async function POST(request: Request): Promise<NextResponse> {
return {
maximumSizeInBytes: MAX_PHOTO_UPLOAD_SIZE_IN_BYTES,
allowedContentTypes: ACCEPTED_PHOTO_FILE_TYPES,
addRandomSuffix: true,
};
} else {
throw new Error('Invalid upload');