+async function updateVideoChannelBanner (req: express.Request, res: express.Response) {
+ const bannerPhysicalFile = req.files['bannerfile'][0]
+ const videoChannel = res.locals.videoChannel
+ const oldVideoChannelAuditKeys = new VideoChannelAuditView(videoChannel.toFormattedJSON())
+
+ const banner = await updateLocalActorImageFile(videoChannel, bannerPhysicalFile, ActorImageType.BANNER)
+
+ auditLogger.update(getAuditIdFromRes(res), new VideoChannelAuditView(videoChannel.toFormattedJSON()), oldVideoChannelAuditKeys)
+
+ return res.json({ banner: banner.toFormattedJSON() })
+}