Skip to content

Commit

Permalink
[#44] Fix: 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
inyeoptti authored Oct 14, 2022
1 parent 58ab3a6 commit 5813b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/routes/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ router.post("/upload-avatar", upload.single('avatar'), (req, res) => {
// POST /image/upload
// Content-Type: multipart/form-data
// Requires field(name=postImages) with image data
router.post("/upload", upload.array('postImages'), (req, res) => {
router.post("/upload", upload.single('postImages'), (req, res) => {
const { fieldname, originalname, encoding, mimetype, destination, filename, path, size } = req.file;

res.json({ path: `/public/${filename}` });
Expand Down

0 comments on commit 5813b8a

Please sign in to comment.