Skip to content

Commit 8c2d8dc

Browse files
Fixed large payload issue in large documents
1 parent cf97ea6 commit 8c2d8dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ASP.NET Core/PdfViewerWebService_6.0/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
});
1919
});
2020

21+
// Configure Kestrel options
22+
builder.WebHost.ConfigureKestrel(options =>
23+
{
24+
options.Limits.MaxRequestBodySize = 52428800; // 50 MB
25+
});
26+
2127
builder.Services.AddMemoryCache();
2228
builder.Services.AddEndpointsApiExplorer();
2329

0 commit comments

Comments
 (0)