mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fix size
This commit is contained in:
parent
13bb68e081
commit
0a3e088578
@ -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'],
|
||||
|
||||
@ -21,7 +21,7 @@ export function getS3PublicUrl(key: string): string {
|
||||
|
||||
export async function uploadBase64Image({
|
||||
input,
|
||||
maxBytes = 1024 * 100,
|
||||
maxBytes = 1024 * 300,
|
||||
folderName,
|
||||
}: {
|
||||
input: string,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user