No longer active. This fork has been removed from GitHub. The content below is preserved from MikeWatch's archive.

Mor1arty/mike

CN-locale fork fixing file upload encoding for Chinese filenames

One PR merged: 10-line fix to `upload.ts` correcting the latin1/UTF-8 filename decoding issue in multer. Addresses a real failure mode for non-ASCII (specifically Chinese) filenames on upload.

View on GitHub →

Mor1arty's fork appears to be a Chinese-locale deployment of the upstream legal-AI codebase. The sole tracked change is a targeted fix to the file upload middleware: multer's default latin1 interpretation of multipart filename headers is corrected by re-decoding originalname via Buffer.from(name, "latin1").toString("utf-8") in backend/src/lib/upload.ts.

No feature work, no architectural changes. One bug, one patch.

What's in it

Direction

i18nintake

Activity

Themed changes and pull requests touching this fork, newest first. Themed changes that haven't been turned into a public post yet still appear — they're real work even without a published writeup.

Threads of work (detailed view)

5 threads have been distilled into posts.

Fix multer latin1 mis-decode for non-ASCII filenames

Mor1arty's fork patches `upload.ts` to re-decode `req.file.originalname` from latin1 to UTF-8, fixing the mangled-filename bug that hits anyone uploading files with Chinese (or any non-ASCII) characters. Ten lines against multer's multipart parsing default.

Decode upload filenames from latin1 to UTF-8

A self-maintained patch by Mor1arty fixes the upload pipeline's character-encoding assumption, so files with Chinese (and other non-ASCII) filenames no longer arrive with garbled names on the server side.

Pull requests (detailed view)

2 PRs touch this fork — inbound (filed against it) or outbound (filed from it). State icons match the editorial dashboard.

✅ Merged (1)

⛔ Closed without merge (1)