Explicitly disable fsize limit for some routes (#4045)

This commit is contained in:
Andrew Camilleri 2022-08-17 10:18:30 +02:00 committed by GitHub
parent d0b26e9f69
commit b6062a94b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,6 @@ namespace BTCPayServer.Controllers
return RedirectToAction("ListPlugins");
}
[HttpPost("server/plugins/upload")]
public async Task<IActionResult> UploadPlugin([FromServices] PluginService pluginService,
List<IFormFile> files)

View file

@ -169,7 +169,6 @@ namespace BTCPayServer.Controllers
public bool IsDownload { get; set; }
}
[HttpPost("server/files/upload")]
public async Task<IActionResult> CreateFiles(List<IFormFile> files)
{

View file

@ -129,6 +129,7 @@ namespace BTCPayServer.Services.Altcoins.Monero.UI
}
[HttpPost("{cryptoCode}")]
[DisableRequestSizeLimit]
public async Task<IActionResult> GetStoreMoneroLikePaymentMethod(MoneroLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
{
cryptoCode = cryptoCode.ToUpperInvariant();

View file

@ -128,6 +128,7 @@ namespace BTCPayServer.Services.Altcoins.Zcash.UI
return View(nameof(GetStoreZcashLikePaymentMethod), vm);
}
[DisableRequestSizeLimit]
[HttpPost("{cryptoCode}")]
public async Task<IActionResult> GetStoreZcashLikePaymentMethod(ZcashLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
{