Add random suffix in blob api
This commit is contained in:
parent
26a8dd2d0a
commit
1eb6a97d24
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user