From fec367668ca742c824441b66417b80f96c86f721 Mon Sep 17 00:00:00 2001 From: JYKIM317 Date: Fri, 29 Nov 2024 00:27:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B0=A9=EC=86=A1=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20API=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 이미지 확장자 반환 코드 변경 --- applicationServer/src/live/live.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applicationServer/src/live/live.service.ts b/applicationServer/src/live/live.service.ts index 2d54d7c8..16ba5d3a 100644 --- a/applicationServer/src/live/live.service.ts +++ b/applicationServer/src/live/live.service.ts @@ -91,7 +91,7 @@ export class LiveService { if (requestBody.thumbnail) { const [imageHeader, imageString] = requestBody.thumbnail.split(','); const dataType = imageHeader.split(':')[1]; - fileEXT = dataType.match(/^image\/([a-z0-9\-+]+);base64$/)[0]; + fileEXT = dataType.match(/^image\/([a-z0-9\-+]+);base64$/)[1]; const imageData = Buffer.from(imageString, 'base64'); uploadData(`${memberLiveData.broadcastPath}/static_thumbnail.${fileEXT}`, imageData); }