Files
O96u bc4cba7e52 release: PicHost v1.0.0
Multi-user image hosting with RBAC, upload preferences, and admin settings.
2026-08-22 14:36:57 +08:00

20 lines
514 B
TypeScript

export const ALLOWED_MIME_TYPES = [
'image/jpeg',
'image/png',
'image/webp',
'image/gif',
'image/svg+xml',
'image/x-icon'
] as const
export type AllowedMimeType = (typeof ALLOWED_MIME_TYPES)[number]
export const MAX_FILE_SIZE = 10 * 1024 * 1024
export const MAX_FILES_PER_UPLOAD = 10
export const MAX_DELETE_BATCH = 100
export const DEFAULT_LIST_LIMIT = 30
export const MAX_LIST_LIMIT = 100
export const IMAGE_CACHE_CONTROL
= 'public, max-age=86400, s-maxage=604800, stale-while-revalidate=86400'