Unplanned
Last Updated: 12 Jun 2021 14:44 by ADMIN
Dan
Created on: 09 Jun 2020 14:00
Category: Upload
Type: Feature Request
13
Custom DropTarget for TelerikUpload
I would like to use a custom zone on my page where people can drop files. At the moment, the upload requires a click on the "upload" button.
2 comments
ADMIN
Marin Bratanov
Posted on: 12 Jun 2021 14:44

Hi Tomas,

Dragging onto the button effectively drags the file on the <input> element, which lets the browser capture the files immediately, without any additional application code (effectively, it acts the same way as using the OS selection window) and so the current code and functionality "just works™".

To extend this to other areas of the page, we need to write additional code to handle JS events there, and pass data along to the C# (Blazor) portion of the app. Thus, this feature needs to be implemented in the component and I am sorry to say that a workaround is not possible.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tomas
Posted on: 01 Jun 2021 06:48

Hi, is there any workaround how to drop files into Blazor TelerikUpload? It works when I drop the file on the "Select files..." button. Could this behavior be extended somehow to a bigger area (dropzone)?

 

Thank yoo Tomas.