diff --git a/src/api/upload/upload.ts b/src/api/upload/upload.ts index 0267bd7..61af5d0 100644 --- a/src/api/upload/upload.ts +++ b/src/api/upload/upload.ts @@ -2,7 +2,11 @@ import customAxios from 'lib/axios'; import { uploadDto } from './upload.dto'; const upload = async (dto: uploadDto) => { - const data = await customAxios.post('/videos', dto); + const data = await customAxios.post('/videos', dto, { + headers: { + 'Content-Type': 'multipart/form-data', + }, + }); return data; }; diff --git a/src/components/Upload/SecondContent.tsx b/src/components/Upload/SecondContent.tsx index e91d88e..1f37b0b 100644 --- a/src/components/Upload/SecondContent.tsx +++ b/src/components/Upload/SecondContent.tsx @@ -40,7 +40,7 @@ const SecondContent = () => { const selectButton = (value: React.SetStateAction) => { setUploadObj({ ...uploadObj, - category: GAME_CATEGORY[selectedButton - 1], + category: 'lol', }); setSelectedButton(value); console.log(uploadObj);