[Solved] Upload Chunk sample code incomplete

1 Answer 9 Views
Upload
Kees
Top achievements
Rank 2
Iron
Iron
Kees asked on 10 Jun 2026, 07:14 PM

Hello,

I tried to implement the chunk upload feature of the Upload component, and started by using the sample code from https://www.telerik.com/blazor-ui/documentation/components/upload/chunk-upload, but didn't get it working.

The main problem is that in UploadController.cs, the IEnumerable<IFormFile> files always have zero elements, and the string parameter chunkMetadata is never used (except in a comment).

So I suspect this controller is copied from the default upload behaviour and modified somewhat, but it remains unfinished.

What is that parameter chunkMetadata? What does it contain? Why isn't that explained in the documentation? 
Under 'Basics' it says there is a property 'MetadataField' that 'Specifies the name of the variable that will receive the chunk upload metadata in the remote endpoint.' Nothing more, no explanation on how to use it, what info it contains, or even simple sample code.
Also, no explanation why in the controller there is a ChunkSave and a ChunkSaveCustom (the latter taking the metadata from the body). Why is that, and why is there no explanation for when to use which?

Can anybody share some working code of the upload controller?

Kind regards,

Kees Alderliesten

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Jun 2026, 01:59 PM

Hi Kees,

Indeed, you are right that some important bits were missing both in the text and the code. Please excuse us for this oversight.

I reworked the Chunk Upload documentation and example and the changes will go live in the next few days. In the meantime, you can check the attached offline PDF version and sample app.

Let me know if you need more information.

Regards,
Dimo
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.

Kees
Top achievements
Rank 2
Iron
Iron
commented on 11 Jun 2026, 02:19 PM

Hi Dimo,

Thanks for the sample code and for updating the docs! It turns out that the code I figured out was fairly accurate :-)

Kind regards,

Kees Alderliesten

Tags
Upload
Asked by
Kees
Top achievements
Rank 2
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or