Browse Source

change multer config to match keys coming in

master
Rich Brown 1 year ago
parent
commit
1b4b71037f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routes/createRouter.js

+ 1
- 1
routes/createRouter.js View File

@@ -7,7 +7,7 @@ const upload = multer({ storage });

const createRouter = express.Router();

createRouter.post('/form', upload.single('uploaded'), (req, res) => {
createRouter.post('/form', upload.single('file'), (req, res) => {
console.log(req.body, req.file);
res.status(451).json({ error: 'hello.', url: null });
});


Loading…
Cancel
Save