Large Video Upload gives Error 400 Bad Request

We've configured the application to allow for up to 4 GB files.

This includes:
- Home.razor: RichTextEditorVideoSettings MaxFileSize="4000000000"
- API Controller: [RequestSizeLimit(4_000_000_000)]
- Program.cs: builder.Services.Configure<KestrelServerOptions>(options => { options.Limits.MaxRequestBodySize = 4000000000; });
- web config: maxAllowedContentLength="4000000000"

When testing smaller video (e.g. 35 MB), it works as expected.
With larger videos, it fails during upload with error 400 (Bad Request).

Coincidentally, it seems to always stop around 128 MB:
414.0 failed at 31% - around 128 MB
377.4 failed at 34% - around 128 MB

Please advise on how to resolve this.

Note: In this ticket, I'm trying to upload the test project zip file (only 1.6 MB) and am getting error "File failed to upload". So here's a link to download it: https://tinyurl.com/23rkr7s7


6 Replies 1 reply marked as answer

BP Brian Pautsch October 28, 2025 07:08 PM UTC

Screenshot of error.


Attachment: sfrteuploaderror_dd184797.png


BP Brian Pautsch replied to Brian Pautsch November 3, 2025 04:31 PM UTC

Any advice?



VJ Vinitha Jeyakumar Syncfusion Team November 4, 2025 05:09 AM UTC

Hi Brian Pautsch,


We are currently validating the reported issue using large video files on our end. We will share further details from our validation process shortly.

Regards,
Vinitha


VJ Vinitha Jeyakumar Syncfusion Team November 4, 2025 10:17 AM UTC

Brian Pautsch,

When uploading large files, the application may encounter the default multipart body length limit of 128 MB (134,217,728 bytes). This limit is set by default in ASP.NET Core.

To resolve this, you need to increase the multipart body length limit in your Program.cs file. Here's how you can do it

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




Marked as answer

BP Brian Pautsch November 4, 2025 01:52 PM UTC

This worked great. Thanks!

I suggest you add this to your docs: 



VJ Vinitha Jeyakumar Syncfusion Team November 5, 2025 05:58 AM UTC

Brian Pautsch,



You are welcome. We will consider your request to add this information to our documentation.


Loader.
Up arrow icon