iachat/app/javascript/dashboard
Sivin Varghese 4e0b091ef8
fix: Prevent unsupported file types on clipboard paste (#13182)
# Pull Request Template

## Description

This PR adds file type validation for clipboard-pasted attachments and
prevents unsupported file types from being attached across channels.

https://developers.chatwoot.com/self-hosted/supported-features#outgoing-attachments-supported-file-types

Fixes
https://linear.app/chatwoot/issue/CW-6233/bug-unsupported-file-types-allowed-via-clipboard-paste

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Loom video**

**Before**
https://www.loom.com/share/882c335be4894d86b9e149d9f7560e72

**After**
https://www.loom.com/share/90ad9605fc4446afb94a5b8bbe48f7db


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2026-01-14 13:07:46 +04:00
..
api feat: Add conversations summary CSV export (#13110) 2026-01-13 12:30:26 +04:00
assets chore: Improve layout styles (#12025) 2025-07-30 13:49:27 -07:00
components fix: Prevent unsupported file types on clipboard paste (#13182) 2026-01-14 13:07:46 +04:00
components-next chore: Improve compose new conversation form (#13176) 2026-01-13 18:52:10 +05:30
composables fix: Rendering of translations based on the user's locale (#13211) 2026-01-08 18:37:42 -08:00
constants fix: Backslash issue with -- and improve autolink handling (#13208) 2026-01-12 11:22:44 +05:30
helper chore: Improve compose new conversation form (#13176) 2026-01-13 18:52:10 +05:30
i18n fix: Prevent unsupported file types on clipboard paste (#13182) 2026-01-14 13:07:46 +04:00
mixins feat: allow configuring attachment upload limit (#12835) 2025-11-17 14:03:08 -08:00
modules chore: Improve compose new conversation form (#13176) 2026-01-13 18:52:10 +05:30
routes feat: Add support for sending CSAT surveys via templates (Whatsapp Twilio) (#13143) 2026-01-13 16:32:02 +04:00
store fix: country_code should be checked against the contact (#13186) 2026-01-13 14:47:27 +05:30
stores feat: Voice Channel (#11602) 2025-12-19 12:41:33 -08:00
App.vue fix: Handle login when there are no accounts (#12816) 2025-11-07 10:14:59 +05:30
featureFlags.js feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30