lixiaojun
2024-12-30 9242291f2a1d7c7186f502d451f77f601af194d0
WebApi/HStation.WebApi.TransferFile.Core/Startup.cs
@@ -33,6 +33,7 @@
            {
                options.Limits.MaxRequestBodySize = int.MaxValue;//之前的
                options.Limits.MaxRequestBufferSize = int.MaxValue;
                options.Limits.MaxResponseBufferSize = int.MaxValue;
            });
            services.Configure<IISServerOptions>(options =>
@@ -47,7 +48,6 @@
                x.MultipartBodyLengthLimit = int.MaxValue; // In case of multipart
                x.MultipartBoundaryLengthLimit = int.MaxValue;
                x.BufferBodyLengthLimit = int.MaxValue;
            });
            // services.AddJwt<JwtHandler>(enableGlobalAuthorize: true);