from 30 to 800 kb for emojis

This commit is contained in:
matty 2024-08-01 21:17:31 -04:00
parent 6d103af5c9
commit be59329581

View File

@ -5,7 +5,7 @@
// Note: API request body size is limited to 100Kb (expressjs body-parser defaut limit, and Peertube nginx config). // Note: API request body size is limited to 100Kb (expressjs body-parser defaut limit, and Peertube nginx config).
// So we must be sure to never send more than 100Kb. The front end sends new emojis by batch, but maxSize must remain // So we must be sure to never send more than 100Kb. The front end sends new emojis by batch, but maxSize must remain
// as little as possible, so that we never reach 100Kb in JSON/base64 format. // as little as possible, so that we never reach 100Kb in JSON/base64 format.
export const maxSize: number = 30 * 1024 export const maxSize: number = 800 * 1024
export const allowedExtensions = ['png', 'jpg', 'jpeg', 'gif'] export const allowedExtensions = ['png', 'jpg', 'jpeg', 'gif']
export const inputFileAccept = ['image/jpg', 'image/png', 'image/gif'] export const inputFileAccept = ['image/jpg', 'image/png', 'image/gif']
export const allowedMimeTypes = ['image/jpg', 'image/png', 'image/gif'] export const allowedMimeTypes = ['image/jpg', 'image/png', 'image/gif']