mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-13 21:01:16 +08:00
# 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> |
||
|---|---|---|
| .. | ||
| cache.spec.js | ||
| clipboard.spec.js | ||
| colorHelper.spec.js | ||
| CustomErrors.spec.js | ||
| CustomEventHelper.spec.js | ||
| DateHelper.spec.js | ||
| documentHelper.spec.js | ||
| Emoji.spec.js | ||
| FileHelper.spec.js | ||
| KeyboardHelpers.spec.js | ||
| localStorage.spec.js | ||
| MessageFormatter.spec.js | ||
| MessageTypeHelper.spec.js | ||
| mitt.spec.js | ||
| portalHelper.spec.js | ||
| ReportsDataHelper.spec.js | ||
| sanitizeData.spec.js | ||
| sessionStorage.spec.js | ||
| timeHelper.spec.js | ||
| ValidatorsHelper.spec.js | ||