From aa945a7f0568fe1f26f54882b00e1f2686c364d7 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 24 May 2023 01:59:22 +0300 Subject: [PATCH 1/2] expressjs_multer/support-for-unicode-headers --- types/multer/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index bd91d3ae086382..cf1099f1347bcb 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -218,6 +218,9 @@ declare namespace multer { } | undefined; /** Preserve the full path of the original filename rather than the basename. (Default: false) */ preservePath?: boolean | undefined; + /** For multipart forms, the default character set to use for values of part header parameters (e.g. filename) + * that are not extended parameters (that contain an explicit charset). (Default: latin1) */ + defParamCharset?: string | undefined; /** * Optional function to control which files are uploaded. This is called * for every file that is processed. From dad9adf5ebe5a83f2fc5f1a4a77b342dc81b1da7 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 24 May 2023 03:00:45 +0300 Subject: [PATCH 2/2] formatting --- types/multer/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index cf1099f1347bcb..c11d20ba620c79 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -218,8 +218,11 @@ declare namespace multer { } | undefined; /** Preserve the full path of the original filename rather than the basename. (Default: false) */ preservePath?: boolean | undefined; - /** For multipart forms, the default character set to use for values of part header parameters (e.g. filename) - * that are not extended parameters (that contain an explicit charset). (Default: latin1) */ + /** + * For multipart forms, the default character set to use for values of + * part header parameters (e.g. filename) that are not extended + * parameters (that contain an explicit charset). (Default: latin1) + */ defParamCharset?: string | undefined; /** * Optional function to control which files are uploaded. This is called