[WEB-5093] improvement: adds content-based MIME type detection for uploads #7925

- Refactored file upload utilities to use async functions for better handling of file metadata.
- Introduced MIME type detection using the file-type library.
- Updated file service methods to await metadata retrieval.
- Added new dependencies for file-type and updated package.json accordingly.
- Removed deprecated file handling code from utils and adjusted imports across services.
This commit is contained in:
Prateek Shourya 2025-10-09 12:22:43 +05:30 committed by GitHub
parent f2539c5051
commit 0b257c8693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 352 additions and 82 deletions

View file

@ -23,7 +23,8 @@
"dependencies": {
"@plane/constants": "workspace:*",
"@plane/types": "workspace:*",
"axios": "catalog:"
"axios": "catalog:",
"file-type": "^21.0.0"
},
"devDependencies": {
"@plane/eslint-config": "workspace:*",