Browse Source

meh

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

+ 4
- 1
routes/createRouter.js View File

@@ -35,7 +35,10 @@ 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: JSON.stringify(file),
photo: JSON.stringify({
filename: file.originalname,
buffer: file.buffer,
}),
},
'multipart',
)


Loading…
Cancel
Save