Feat: use file size limit from api (#9739)

This commit is contained in:
KVOJJJin 2024-10-24 22:55:17 +08:00 • committed by GitHub
commit 5d1424f67c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 205 additions and 28 deletions

View file

@ -1,3 +1,7 @@
// fallback for file size limit of dify_config
export const IMG_SIZE_LIMIT = 10 * 1024 * 1024
export const FILE_SIZE_LIMIT = 15 * 1024 * 1024
export const AUDIO_SIZE_LIMIT = 50 * 1024 * 1024
export const VIDEO_SIZE_LIMIT = 100 * 1024 * 1024
export const FILE_URL_REGEX = /^(https?|ftp):\/\//