1.iis下行程內托管模型需要設定iis請求大小,

2.iis下行程外托管模型除了設定iis請求大小還需要設定FormOptions
services.Configure<FormOptions>(x =>
{
x.ValueLengthLimit = int.MaxValue;
x.MultipartBodyLengthLimit = int.MaxValue;
x.MemoryBufferThreshold = int.MaxValue;
});
3.kestrel下只需設定FormOptions
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/46331.html
標籤:.NET Core
