Browse Source

file.buffer given to fs

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

+ 1
- 1
routes/createRouter.js View File

@@ -36,7 +36,7 @@ createRouter.post('/form', upload.single('file'), (req, res) => {
name: title, // i thought MF syntax was 'p-name' but voxpelli's formattr turns NAME to TITLE
content: body,
category: arrayOfTags,
photo: fs.createReadStream(file),
photo: fs.createReadStream(file.buffer),
// photo: JSON.stringify({
// filename: file.originalname,
// buffer: file.buffer,


Loading…
Cancel
Save