This commit is contained in:
Zai Shi 2025-07-30 09:55:34 -07:00
parent 13bb68e081
commit 0a3e088578
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export async function parseBase64Image(input: string, options: {
maxHeight?: number,
allowTypes?: string[],
} = {
maxBytes: 10 * 1024,
maxBytes: 1024 * 300,
maxWidth: 4096,
maxHeight: 4096,
allowTypes: ['image/jpeg', 'image/png', 'image/webp'],

View File

@ -21,7 +21,7 @@ export function getS3PublicUrl(key: string): string {
export async function uploadBase64Image({
input,
maxBytes = 1024 * 100,
maxBytes = 1024 * 300,
folderName,
}: {
input: string,