RocketChat / RocketChat/Rocket.Chat
The uploaded file type is incorrect
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
The uploaded file type is incorrect
Steps to reproduce:
- Upload CSV file
- File type is "application/vnd.ms-excel" instead of "text/csv"
Expected behavior:
Actual behavior:
Server Setup Information:
- Version of Rocket.Chat Server: 3.7.0
- Operating System: Ubuntu20.4.1
- Deployment Method:
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: 12.14.0
- MongoDB Version:4.0.20
Client Setup Information
- Desktop App or Browser Version:Chrome 86 and desktop 3.0.6
- Operating System:Windows 10
Additional context
Relevant logs:
no logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the CSV upload using the listed server and client versions, then trace where the uploaded file type is determined. Confirm the intended MIME type with maintainers and verify the agreed behavior with a focused regression check; the issue is done when the incorrect type is no longer reported.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100