From 0a57209379fe4a0f079dd9fb1dbfbc3bc84cbae3 Mon Sep 17 00:00:00 2001 From: KANGYONGSU23 Date: Thu, 4 Apr 2024 16:19:18 +0900 Subject: [PATCH 1/3] =?UTF-8?q?hotfix=20::=20=EB=A6=AC=ED=94=84=EB=9E=98?= =?UTF-8?q?=EC=89=AC=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/auth/index.ts | 4 ++-- src/apis/axios.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apis/auth/index.ts b/src/apis/auth/index.ts index f5a8c7a..1be8eff 100644 --- a/src/apis/auth/index.ts +++ b/src/apis/auth/index.ts @@ -6,8 +6,8 @@ import { AuthCode, IAuthorizationResponse, SendAuthCodeType } from "./type"; const router = "/auth"; export const useReissueToken = async (refresh_token: string) => { - const response = await axios.put( - `${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform_type=WEB`, + const response = await axios.put( + `${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform-type=WEB`, null, { headers: { diff --git a/src/apis/axios.ts b/src/apis/axios.ts index 5fcee55..6d34e56 100644 --- a/src/apis/axios.ts +++ b/src/apis/axios.ts @@ -45,9 +45,11 @@ instance.interceptors.response.use( const accessExpired = new Date(res.access_expires_at); const refreshExpired = new Date(res.refresh_expires_at); cookies.set("access_token", res.access_token, { + path: '/', expires: accessExpired, }); cookies.set("refresh_token", res.refresh_token, { + path: '/', expires: refreshExpired, }); if (config!.headers) { From e3736bbd3bf19e09b1353aff1c2b710f989ec4f0 Mon Sep 17 00:00:00 2001 From: KANGYONGSU23 Date: Thu, 4 Apr 2024 23:28:22 +0900 Subject: [PATCH 2/3] =?UTF-8?q?hotfix=20::=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=ED=99=95=EC=9E=A5=EC=9E=90=20=EC=97=90=EB=9F=AC=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=20=EB=B0=8F=20=EC=97=85=EB=A1=9C=EB=93=9C=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=20=ED=99=95=EC=9E=A5=EC=9E=90=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/file/index.ts | 23 +++++++++++++++++------ src/app/recruitments/apply/page.tsx | 12 +++++++++++- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/apis/file/index.ts b/src/apis/file/index.ts index 276a63f..8a829d0 100644 --- a/src/apis/file/index.ts +++ b/src/apis/file/index.ts @@ -30,12 +30,23 @@ export const useCreatePresignedURL = () => { }); }, onError: (error: AxiosError) => { - if (error.response) - append({ - title: "", - message: "파일 업로드에 실패했습니다.", - type: "RED", - }); + switch (error.response.status) { + case 400 : { + append({ + title: '', + message: '잘못된 파일 확장자입니다.', + type: 'RED', + }) + } + break; + default : { + append({ + title: "", + message: "파일 업로드에 실패했습니다.", + type: "RED", + }); + } + } }, } ); diff --git a/src/app/recruitments/apply/page.tsx b/src/app/recruitments/apply/page.tsx index 60c998d..5bd0b64 100644 --- a/src/app/recruitments/apply/page.tsx +++ b/src/app/recruitments/apply/page.tsx @@ -133,6 +133,7 @@ export default function Apply() {

제출서류 : {recruitmentsDetial?.submit_document}

+ -
+
+
+

+ ※ 파일 첨부 시 파일 확장자를 확인해 주시기 바랍니다. +

+

+ pdf, ppt, pptx, hwp, jpg, png, zip, txt, mp4, png, jpg, svg +

+
{ setIsClickedApplyBtn(true); @@ -204,6 +213,7 @@ export default function Apply() {
+ { onUploadFile(fileList); From b3589a5ded130f93f675eb8c909c75a9a883459a Mon Sep 17 00:00:00 2001 From: KANGYONGSU23 Date: Thu, 4 Apr 2024 23:32:49 +0900 Subject: [PATCH 3/3] =?UTF-8?q?hotfix=20::=20=EC=98=B5=EC=85=94=EB=84=90?= =?UTF-8?q?=20=EC=B2=B4=EC=9D=B4=EB=8B=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/file/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apis/file/index.ts b/src/apis/file/index.ts index 8a829d0..7599b1f 100644 --- a/src/apis/file/index.ts +++ b/src/apis/file/index.ts @@ -30,8 +30,8 @@ export const useCreatePresignedURL = () => { }); }, onError: (error: AxiosError) => { - switch (error.response.status) { - case 400 : { + switch (error.response?.status) { + case 400 : { append({ title: '', message: '잘못된 파일 확장자입니다.',