RocketChat / RocketChat/Rocket.Chat

Some file types get rejected during upload despite being allowed in the settings

Open
#18,122 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Trying to upload .sketch files shows an error window despite all file types being allowed in the settings

Steps to reproduce:
  1. Upload .sketch file
Expected behavior:

The file to be uploaded successfully

Actual behavior:

Trying to upload .sketch files gives the following error window:

Clipboard - July 2, 2020 11_53 AM

This is despite all file types being allowed in the backend:

Screenshot 2020-07-02 at 12 08 16
Server Setup Information:
  • Version of Rocket.Chat Server: 3.4.0
  • Operating System: Docker
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: yes
  • NodeJS Version:
  • MongoDB Version:
Client Setup Information
  • Desktop App or Browser Version: Chrome
  • Operating System: OS X
Additional context

This definitely used to work before. We are not sure if it was introduced by the 3.4.0 release specifically, but must be a fairly new issue.

Relevant 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

Start by reproducing the upload failure in Chrome with a .sketch file while all file types are allowed in the backend settings. Trace the client and server upload validation to find where this extension is rejected. Done means an allowed .sketch file uploads successfully without the error window.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.