mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Explicitly disable fsize limit for some routes (#4045)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -169,7 +169,6 @@ namespace BTCPayServer.Controllers
|
||||
public bool IsDownload { get; set; }
|
||||
}
|
||||
|
||||
|
||||
[HttpPost("server/files/upload")]
|
||||
public async Task<IActionResult> CreateFiles(List<IFormFile> files)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user