typeof [object Object] is string
Open
question
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 1.1k
- Avg merge
- 8d 2h
- Merged PRs (30d)
- 21
Description
I need to upload several images along with some other data (strings, numbers, booleans and objects). However, the objects are parsed as strings "[object Object], [object Object]".
The rest of the fields and the image upload work well, but how do I retrieve the objects as objects? Does Multer only return strings?
```javascript
app.post('/adverts', requireAuth, upload.array('images', 15), Adverts.create);
```
index.js:
```javascript
app.use(bodyParser.json());
```
Contributor guide
Assessment
This issue has not been assessed yet.