fix(mgmt-perf): multer defParamCharset utf8로 업로드 파일명 디코딩

Made-with: Cursor
This commit is contained in:
2026-04-13 18:54:47 +09:00
parent 3ab42d58ce
commit 759557428c
2 changed files with 3 additions and 1 deletions

View File

@@ -569,6 +569,8 @@ const mgmtPerfStorage = multer.diskStorage({
const uploadMgmtPerfExcel = multer({
storage: mgmtPerfStorage,
limits: { fileSize: 55 * 1024 * 1024 },
/** Busboy 기본은 latin1; `filename="..."` 안의 UTF-8 바이트를 올바르게 UTF-8 문자열로 씁니다. */
defParamCharset: "utf8",
fileFilter: (_, file, cb) => {
const ext = path.extname(file.originalname).toLowerCase();
if (ext !== ".xlsx") {