diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-16 16:35:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-16 16:35:32 +0100 |
commit | 6de36768980ef6063b8fcd730b59fa685dd2b99c (patch) | |
tree | a8e5a87b14013b33bf2d306552a380c407a1551d /server/controllers | |
parent | b6a4fd6b099b3363ac59c06cfd81b54e1356d8bc (diff) | |
download | PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.tar.gz PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.tar.zst PeerTube-6de36768980ef6063b8fcd730b59fa685dd2b99c.zip |
Add ability to update thumbnail and preview on client
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 89163edb3..532afb8c0 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -61,6 +61,12 @@ async function getConfig (req: express.Request, res: express.Response, next: exp | |||
61 | } | 61 | } |
62 | }, | 62 | }, |
63 | video: { | 63 | video: { |
64 | image: { | ||
65 | extensions: CONSTRAINTS_FIELDS.VIDEOS.IMAGE.EXTNAME, | ||
66 | size: { | ||
67 | max: CONSTRAINTS_FIELDS.VIDEOS.IMAGE.FILE_SIZE.max | ||
68 | } | ||
69 | }, | ||
64 | file: { | 70 | file: { |
65 | extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME | 71 | extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME |
66 | } | 72 | } |