Browse Source

putting path in array

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

+ 1
- 1
routes/createRouter.js View File

@@ -40,7 +40,7 @@ createRouter.post('/form', upload.single('file'), (req, res) => {
name: title,
content: body,
category: arrayOfTags,
photo: fs.createReadStream(file.path),
photo: [fs.createReadStream(file.path)],
},
'multipart',
)


Loading…
Cancel
Save