File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed
PdfViewerWebService_6.0 - Minimal API
PdfViewerWebService_8.0/PdfViewerWebService_8.0 Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 7
7
using Microsoft . AspNetCore . HttpsPolicy ;
8
8
using Microsoft . AspNetCore . Mvc ;
9
9
using Microsoft . AspNetCore . ResponseCompression ;
10
+ using Microsoft . AspNetCore . Server . Kestrel . Core ;
10
11
using Microsoft . Extensions . Configuration ;
11
12
using Microsoft . Extensions . DependencyInjection ;
12
13
using Microsoft . Extensions . Hosting ;
@@ -27,6 +28,7 @@ public Startup(IConfiguration configuration)
27
28
// This method gets called by the runtime. Use this method to add services to the container.
28
29
public void ConfigureServices ( IServiceCollection services )
29
30
{
31
+ services . Configure < KestrelServerOptions > ( options => options . Limits . MaxRequestBodySize = 52428800 ) ;
30
32
services . AddControllers ( ) ;
31
33
services . AddMemoryCache ( ) ;
32
34
services . AddControllers ( ) . AddNewtonsoftJson ( options =>
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <system .webServer>
4
+ <security >
5
+ <requestFiltering >
6
+ <requestLimits maxAllowedContentLength =" 2147483647" />
7
+ </requestFiltering >
8
+ </security >
9
+ </system .webServer>
10
+ </configuration >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <system .webServer>
4
+ <security >
5
+ <requestFiltering >
6
+ <requestLimits maxAllowedContentLength =" 2147483647" />
7
+ </requestFiltering >
8
+ </security >
9
+ </system .webServer>
10
+ </configuration >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <system .webServer>
4
+ <security >
5
+ <requestFiltering >
6
+ <requestLimits maxAllowedContentLength =" 2147483647" />
7
+ </requestFiltering >
8
+ </security >
9
+ </system .webServer>
10
+ </configuration >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <system .webServer>
4
+ <security >
5
+ <requestFiltering >
6
+ <requestLimits maxAllowedContentLength =" 2147483647" />
7
+ </requestFiltering >
8
+ </security >
9
+ </system .webServer>
10
+ </configuration >
You can’t perform that action at this time.
0 commit comments