RocketChat / RocketChat/Rocket.Chat

fix: Duplicate Warning Message on 0 KB File and SVG Upload

Open
#35,499 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

The warning message is displayed twice.

Steps to Reproduce:
  1. Open a team, channel, or direct message from the left pane.
  2. Now drag and drop and SVG (image) or a file with size 0 KB.
  3. analyze the warning.
Expected Behavior:
  • The warning should appear once.
Actual Behavior:

https://github.com/user-attachments/assets/d932eb12-f6f1-4b8d-b236-78a2660b6ec1

Server/Client Information:
Server:
  • Operating System: Windows 11 (using WSL Terminal)
  • Rocket.Chat Server Version: 7.4.0-develop
  • Node.js Version: 22.11.0
  • Yarn Version: 4.6.0
Client:
Additional Information:
  • WSL Terminal: Used for installing dependencies.
Are you working on this?

✅ Yes, I am working on this.

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 duplicate warning by dropping an SVG or 0 KB file into a team, channel, or direct message in the browser. Trace the upload warning flow from that interaction and verify that the warning appears only once for both file cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.