RocketChat / RocketChat/Rocket.Chat
fix: Duplicate Warning Message on 0 KB File and SVG Upload
Open
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:
- Open a team, channel, or direct message from the left pane.
- Now drag and drop and SVG (image) or a file with size 0 KB.
- 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:
- Client Type: Browser (Microsoft Edge)
- Access URL: http://localhost:3000
Additional Information:
- WSL Terminal: Used for installing dependencies.
Are you working on this?
✅ Yes, I am working on this.
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 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