lixiaojun
2024-12-18 25233345bd14e2389e9b8110e38f831057dd4f65
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);