Prepopulate Upload component

1 Answer 39 Views
Upload
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 12 May 2021, 04:50 PM
Is there anyway to prepopulate the Upload control? Basically access the Files property to initialize with existing files. I am able to do this in the Kendo UI Upload. 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 May 2021, 05:45 PM

Hello Wayne,

You can Follow the implementation of such functionality here: https://feedback.telerik.com/blazor/1485660-initial-files-in-blazor-upload. I added your Vote to it on your behalf to raise its priority.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Irfan
Top achievements
Rank 1
commented on 09 Sep 2021, 12:20 PM

@Marin,
Is there any workaround for this functionality to work?
Marin Bratanov
Telerik team
commented on 09 Sep 2021, 07:22 PM

Unfortunately there is no workaround possible, it is a pretty serious feature even it if has a relatively small public api surface.

In the meantime you can consider showing info to your users about related files they have on record in a grid or listview near (or next to, or above, or below) the upload so they can see what they have already. You can also return info for errors (say, duplicate files) in the OnSuccess event (see the second snippet) and show them a message (maybe through the Dialog component).

Tags
Upload
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or