Skip to content

Commit 7fcd99f

Browse files
authored
Merge pull request #184 from TaskFlow-CLAP/CLAP-409
🚑 Hotfix 회원정보 수정 사진 미반영
2 parents 3cabbd8 + 181f5cc commit 7fcd99f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/components/common/EditInformation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
<script lang="ts" setup>
130130
import { patchEditInfo } from '@/api/common'
131-
import { ALLOWED_FILE_EXTENSIONS } from '@/constants/common'
131+
import { ALLOWED_FILE_EXTENSIONS, ALLOWED_FILE_EXTENSIONS_IMAGE } from '@/constants/common'
132132
import { useMemberStore } from '@/stores/member'
133133
import { storeToRefs } from 'pinia'
134134
import { nextTick, ref, watchEffect } from 'vue'
@@ -233,7 +233,7 @@ const handleFileUpload = (event: Event) => {
233233
failModalToggle()
234234
return
235235
}
236-
if (!ALLOWED_FILE_EXTENSIONS.includes(file.type)) {
236+
if (!ALLOWED_FILE_EXTENSIONS_IMAGE.includes(file.type)) {
237237
failHeader.value = '파일 타입을 확인해주세요'
238238
failBody.value = '파일 타입과 확장자명이 일치해야합니다'
239239
failModalToggle()

src/constants/common.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,12 @@ export const PERMITTED_URL = {
7070
}
7171

7272
export const ALLOWED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
73+
74+
export const ALLOWED_FILE_EXTENSIONS_IMAGE = [
75+
'image/jpg',
76+
'image/jpeg',
77+
'image/png',
78+
'image/gif',
79+
'image/bmp',
80+
'image/x-windows-bmp'
81+
]

0 commit comments

Comments
 (0)