epam / epam/UUI

[RTE]: Restrict ability to upload not PDF files via iframePlugin

Open
#657 1 comment 0 reactions 0 assignees View on GitHub
Contributor needed feature RTE
Dominant language
TypeScript
Stars
247
Forks
78
Avg merge
14h 27m
Merged PRs (30d)
15

Description

**Description**
On Windows systems even if `accept` attribute is set you are still able to upload a file of any extension you like. You can achieve it by choosing "All Files (*.*)" option in opened File Explorer window. Unfortunately, wrong file extensions may lead to unexpected behavior.

**Describe the solution you'd like**
We have managed to avoid this case by `iframePlugin` customization. If we receive a file of a wrong format, we show a warning modal. But we are convinced that this restriction should be implemented within UUI library itself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.