2024-06-07 14:08:35 +02:00
|
|
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-06-20 11:14:00 +02:00
|
|
|
// 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
|
|
|
|
// as little as possible, so that we never reach 100Kb in JSON/base64 format.
|
2024-06-06 15:03:12 +02:00
|
|
|
export const maxSize: number = 30 * 1024
|
2024-06-06 11:36:07 +02:00
|
|
|
export const allowedExtensions = ['png', 'jpg', 'jpeg', 'gif']
|
|
|
|
export const inputFileAccept = ['image/jpg', 'image/png', 'image/gif']
|
|
|
|
export const allowedMimeTypes = ['image/jpg', 'image/png', 'image/gif']
|
2024-06-10 17:17:15 +02:00
|
|
|
export const maxEmojisPerChannel = 200
|