TelerikUpload Files parameter inaccessible due to its protection level (Blazor server-side)

1 Answer 64 Views
Upload
Bill
Top achievements
Rank 1
Iron
Iron
Bill asked on 14 Aug 2023, 03:19 PM

Hello,

I'm using the (excellent) TelerikUpload component in our Blazor app and I'm trying to set the initial files list for previously-uploaded files as specified here: https://docs.telerik.com/blazor-ui/components/upload/initial-files . When I try to do something like

Uploader.Files = new List<UploadFileInfo>();

I get the error that 'TelerikUploadBase<UploadFileInfo>.Files' is inaccessible due to its protection level.

If I try to set it as a parameter on the component declaration on my page, I get the error that Files isn't set a a ParameterAttribute or CascadingParameter.

Am I missing something?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 15 Aug 2023, 11:52 AM

Hello Bill,

Please upgrade to version 4.4.0, which introduced the Files parameter:

Direct parameter mutation (Uploader.Files = ...) should not be used in Blazor.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Bill
Top achievements
Rank 1
Iron
Iron
commented on 15 Aug 2023, 06:41 PM

Ah, I see- thanks!
Tags
Upload
Asked by
Bill
Top achievements
Rank 1
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or