Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@open-condo/config": "workspace:^",
"@open-condo/miniapp-utils": "workspace:^",
"express": "^4.21.2",
"file-type": "16.5.4",
"file-type": "21.3.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update MIME detection for file-type v21

With this bump, file-type no longer exposes the old fromFile API used by packages/files/detectMimeType.js; the v21 API exports fileTypeFromFile instead. For every upload path that reaches utils.js and calls detectMimeTypeFromFile(f.filepath), fromFile is undefined and the detector falls back to the client-provided MIME type, so server-side content sniffing is effectively disabled until the import/call is migrated.

Useful? React with 👍 / 👎.

"formidable": "^3.5.4",
"jsonwebtoken": "^9.0.0",
"zod": "^4.4.3"
Expand Down
Loading
Loading