RocketChat / RocketChat/Rocket.Chat

The uploaded file type is incorrect

Open
#19,454 7 comments 5 reactions 0 assignees View on GitHub

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:
  1. Upload CSV file
  2. File type is "application/vnd.ms-excel" instead of "text/csv"
Expected behavior:
Actual behavior:

mongod_filetype

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.