Nov
29
15 hours ago
Activity icon
issue

luisorbaiceta issue comment expressjs/multer

luisorbaiceta
luisorbaiceta

Update README-es.md

Minor spelling fixes

luisorbaiceta
luisorbaiceta

Sorry for missing this!

Is it okay if I reopen and merge it?

Sure!

Activity icon
issue

LinusU issue comment expressjs/multer

LinusU
LinusU

Update README-es.md

Minor spelling fixes

LinusU
LinusU

Sorry for missing this!

Is it okay if I reopen and merge it?

started
started time in 1 hour ago
Nov
28
1 day ago
started
started time in 18 hours ago
Activity icon
issue

schobernoise issue comment expressjs/multer

schobernoise
schobernoise

Typescript: Property 'file' does not exist on type 'Request'

Because the file/s or body attributes (and all the rest) is added in runtime, the Typescript compiler does not recognize them and it fails. So, they should be referenced like this

app.post('/profile', upload.single('avatar'), function (req, res, next) {
  // req['file'] is the `avatar` file
  // req['body'] will hold the text fields, if there were any
})

app.post('/photos/upload', upload.array('photos', 12), function (req, res, next) {
  // req['files'] is array of `photos` files
  // req['body'] will contain the text fields, if there were any
})

Just wanted to point that out. Maybe you can add a comment in the documentation. Thanks!

schobernoise
schobernoise

I was just researching on the same issue and actually just writing it like this:

req["user]["sub"] instead of req.user.sub

worked like a charm.

started
started time in 1 day ago
started
started time in 1 day ago
Nov
27
2 days ago
pull request

luisorbaiceta pull request expressjs/multer

luisorbaiceta
luisorbaiceta

Update README-es.md

Minor spelling fixes

started
started time in 2 days ago
Nov
26
3 days ago
push

LinusU push expressjs/multer

LinusU
LinusU

add vietnamese language README.md

LinusU
LinusU

Merge branch 'master' into master

LinusU
LinusU

Merge pull request #803 from khacpv/master

add vietnamese language README.md

commit sha: d686e45b733f7d6242ff51f5d8498ce40fb15d69

push time in 3 days ago
Previous