RocketChat / RocketChat/Rocket.Chat

GIMP file couldn't uploaded

Open
#14,120 4 comments 0 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:

File created by GIMP (file extension *.xcf) couldn't be uploaded.

Steps to reproduce:
  1. Add "image/*" (default) or "image/x-xcf" (exact MIME type) to the list of "Accepted Media Types" (Administration --> File Upload)
  2. Open a channel
  3. Try to upload a file produced with GIMP
Expected behavior:

The file will be uploaded and a message with the attachment will be posted to the channel.

Actual behavior:

The upload will be rejected with the note "Media Types Not Accepted".
image

Server Setup Information:
  • Version of Rocket.Chat Server: 0.74.3
  • Operating System: CentOS 7
  • Deployment Method: manually
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Disabled
  • NodeJS Version: 8.11.3
  • MongoDB Version: 3.6.12

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 upload from Administration → File Upload using an XCF file and the accepted media types listed in the report. Trace the file-upload media-type validation, then verify that an accepted GIMP XCF file uploads and its attachment is posted to the channel without the “Media Types Not Accepted” rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.