1.4.7 • Published 1 year ago
multer-utf8 v1.4.7
multer-utf8

multer-utf8 is a solution for latin1 charset issue.
busboy reads files with latin1 charset by default, which causes some problems with utf8 encoded files.
I fixed it by changing this part of code.
try {
busboy = Busboy({ headers: req.headers, limits: limits, ßpreservePath: preservePath, defParamCharset: charset })
} catch (err) {
return next(err)
}Options
| Key | Description |
|---|---|
| dest or storage | Where to store the files |
| fileFilter | Function to control which files are accepted |
| limits | Limits of the uploaded data |
| preservePath | Keep the full path of files instead of just the base name |
| charset | charset of files. for example latin1, utf8 |
Support latin1
/**
* mutler for utf8
* default charset is `utf8`
*/
const multerWithUTF8 = multer({
...mutlerOptions
})
// multer for latin1
const multer = multer({
...multerOptions
charset: 'latin1'
});1.4.6
1 year ago
1.4.7
1 year ago
1.4.5-lts.11
3 years ago
1.4.5-lts.10
3 years ago
1.4.5-lts.9
3 years ago
1.4.5-lts.8
3 years ago
1.4.5-lts.7
3 years ago
1.4.5-lts.6
3 years ago
1.4.5-lts.5
3 years ago
1.4.5-lts.4
3 years ago
1.4.5-lts.3
3 years ago
1.4.5-lts.2
3 years ago
1.4.5-lts.1
3 years ago