RocketChat / RocketChat/Rocket.Chat
GIMP file couldn't uploaded
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:
File created by GIMP (file extension *.xcf) couldn't be uploaded.
Steps to reproduce:
- Add "image/*" (default) or "image/x-xcf" (exact MIME type) to the list of "Accepted Media Types" (Administration --> File Upload)
- Open a channel
- 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".

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
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 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