diff options
author | Kimsible <1877318+kimsible@users.noreply.github.com> | 2020-11-25 09:26:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-25 09:26:31 +0100 |
commit | 123f61933611f326ea5a5e8c2ea253ee8720e4f0 (patch) | |
tree | 49ff0e98eaffc389f33fb57bd1b42735fe78bce8 /server/initializers/constants.ts | |
parent | c07fac202dba3fed69aace74157589c21d732be6 (diff) | |
download | PeerTube-123f61933611f326ea5a5e8c2ea253ee8720e4f0.tar.gz PeerTube-123f61933611f326ea5a5e8c2ea253ee8720e4f0.tar.zst PeerTube-123f61933611f326ea5a5e8c2ea253ee8720e4f0.zip |
Add pixel size to tooltip and gif support with FFmpeg for avatar upload (#3329)
* Add avatar pixel size upload in tooltip
* Add gif support for avatar
* Add ffmpeg GIF process
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 79e6a744c..5c6d06077 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -291,7 +291,7 @@ const CONSTRAINTS_FIELDS = { | |||
291 | PRIVATE_KEY: { min: 10, max: 5000 }, // Length | 291 | PRIVATE_KEY: { min: 10, max: 5000 }, // Length |
292 | URL: { min: 3, max: 2000 }, // Length | 292 | URL: { min: 3, max: 2000 }, // Length |
293 | AVATAR: { | 293 | AVATAR: { |
294 | EXTNAME: [ '.png', '.jpeg', '.jpg' ], | 294 | EXTNAME: [ '.png', '.jpeg', '.jpg', '.gif' ], |
295 | FILE_SIZE: { | 295 | FILE_SIZE: { |
296 | max: 2 * 1024 * 1024 // 2MB | 296 | max: 2 * 1024 * 1024 // 2MB |
297 | } | 297 | } |