Skip to content

Commit

Permalink
Merge pull request #281 from BY-juun/master
Browse files Browse the repository at this point in the history
Feature: s3 limit 확장
  • Loading branch information
june-by authored Nov 29, 2023
2 parents 34275c9 + 4f67a33 commit e671d60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/build/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function default_1() {
cb(null, `original/${Date.now()}_${path_1.default.basename(file.originalname)}`);
},
}),
limits: { fileSize: 5 * 1024 * 1024 },
});
app.use("/", express_1.default.static(path_1.default.join(__dirname, "uploads")));
app.post("/uploads", upload.single("img"), (req, res) => {
Expand Down
1 change: 1 addition & 0 deletions server/build/database/SequelizeConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ const config = config_1.dbConfig[env];
exports.sequelizeConnection = new sequelize_1.Sequelize(config.database, config.username, config.password, {
host: config.host,
dialect: config.dialect,
logging: false,
});
1 change: 1 addition & 0 deletions server/src/config/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default async function () {
cb(null, `original/${Date.now()}_${path.basename(file.originalname)}`);
},
}),
limits: { fileSize: 5 * 1024 * 1024 },
});

app.use("/", express.static(path.join(__dirname, "uploads")));
Expand Down

1 comment on commit e671d60

@vercel
Copy link

@vercel vercel bot commented on e671d60 Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.