epam / epam/UUI

RTE - File Download - allow custom download logic

Open
#2,309 0 comments 0 reactions 0 assignees View on GitHub
Contributor needed feature
Dominant language
TypeScript
Stars
247
Forks
78
Avg merge
14h 27m
Merged PRs (30d)
15

Description

## Description

There are cases, when we need to extend file download behavior. Examples:

- to check files for viruses, before allowing user to download it, we need to make an additional API call
- to download files from another domain, we also need additional API call, to make pre-signed URL to another domain

## Describe the solution you'd like

Add a new prop somewhere in RTE config, accepting callback like `onDownload: (link: string) => void`. This callback should be called when the user clicks download. Passing this callback should also disable the default behavior.

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.