Skip to content

Commit 0346d92

Browse files
committed
refact: Base64 대신 파일 업로드 방식 유지하도록 수정
1 parent be55875 commit 0346d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/event-manage/event-create/hooks/usePresignedUrlHook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const putS3Image = async ({ url, file }: { url: string; file: File }) =>
2424
console.log('업로드할 URL:', url);
2525
await axios.put(url, file, {
2626
headers: {
27-
'Content-Type': 'image/jpeg',
27+
'Content-Type': file.type,
2828
},
2929
});
3030
} catch (error) {

0 commit comments

Comments
 (0)