In Development
Last Updated: 26 Feb 2025 13:06 by ADMIN
Scheduled for 2025 Q2 (May)
Huguette
Created on: 19 Feb 2025 12:56
Category: Editor
Type: Bug Report
0
The File() option of the FileBrowser does not provide UrlHandler() option

### Bug report

The File() option of the Editor's FileBrowser configuration does not provide UrlHandler() option, which is available for the ImageBrowser.

### Reproduction of the problem

1) Define an Editor and enable the FileBrowser feature:

@(Html.Kendo().Editor()
    .Name("Description")
    .Tools(tools => tools
        .Clear()
        .InsertFile()
    )
    .FileBrowser(fileBrowser => fileBrowser
        .File("GetFile", "FileBrowser", new { path = "{0}" })
        .Read("Read", "FileBrowser")
        .Create("Create", "FileBrowser")
        .Destroy("Destroy", "FileBrowser")
        .Upload("Upload", "FileBrowser")
        )
)

2) The File() option sets URL responsible for serving the original file. Try to set it by using a JavaScript handler.

3) The File(x => x.UrlHandler("setURLHandler")) configuration is not available.

### Expected/desired behavior

The UrlHandler() function must be available to set the URL that serves the file using a JavaScript handler.

### Environment

* **Telerik UI for ASP.NET Core version: 2025.1.211
* **Browser: [all]

0 comments