Skip to content

Commit

Permalink
🚑 fix max post size
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Dec 21, 2023
1 parent 41c003b commit b08b9ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions back/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ app.use(
},
})
);
var bodyParser = require("body-parser");

app.use(bodyParser.json({ limit: "100mb" }));
app.use(bodyParser.urlencoded({ limit: "100mb", extended: true }));

sequelize
.sync({ force: false }) //true면 서버 실행마다 테이블 재생성
Expand Down
2 changes: 1 addition & 1 deletion front/src/pages/AddActivity/AddActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const AddActivity = (): JSX.Element => {
const handleError = (error: any) => {
console.error("Error uploading file:", error);
alert(
`활동을 저장하는 도중 오류가 발생했습니다. 입력한 정보를 다시 확인해주세요. ${error}`
`파일을 업로드하는 도중 오류가 발생했습니다. 파일을 다시 확인해주세요. ${error}`
);
};

Expand Down

0 comments on commit b08b9ab

Please sign in to comment.