This is a migrated thread and some comments may be shown as answers.

Upload large files

2 Answers 642 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Iron
Iron
Jay asked on 02 Sep 2020, 01:50 PM
Do you have any plans on modifying the component to upload large video files over 1GB in size? From your documentation it looks like the upload component will only handle the max request size of IIS.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Sep 2020, 02:20 PM

Hi Jay,

I made this page on your behalf where you can Follow the chunk upload implementation: https://feedback.telerik.com/blazor/1483101-upload-file-in-chunks-large-file-upload.

 

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/.

Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
commented on 17 Nov 2023, 07:39 AM

@Marin,

Is there a working example of a large file upload implementation for Balzor WebAssembly hosted with ASP.NET Core? As soon as I try and upload too large a file, the IFormFile attribute hitting the controller method is null. I have added the following to my server program.cs

 builder.Services.Configure<FormOptions>(options =>
 {
     options.MultipartBodyLengthLimit = 128 * 1024 * 1024; // 128MB
 });

 builder.Services.Configure<IISServerOptions>(options =>
 {
     options.MaxRequestBodySize = 128 * 1024 * 1024; // 128MB
 });
but still get null
0
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
answered on 17 Nov 2023, 09:09 AM

For anyone still struggling with this, the solution turned out to be exceedingly simple.

I decorated my UploadController with [ApiController] attribute and the specific upload method with  [DisableRequestSizeLimit] attribute.

Tags
Upload
Asked by
Jay
Top achievements
Rank 1
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or