mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +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");
|
return RedirectToAction("ListPlugins");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpPost("server/plugins/upload")]
|
[HttpPost("server/plugins/upload")]
|
||||||
public async Task<IActionResult> UploadPlugin([FromServices] PluginService pluginService,
|
public async Task<IActionResult> UploadPlugin([FromServices] PluginService pluginService,
|
||||||
List<IFormFile> files)
|
List<IFormFile> files)
|
||||||
|
|||||||
@@ -169,7 +169,6 @@ namespace BTCPayServer.Controllers
|
|||||||
public bool IsDownload { get; set; }
|
public bool IsDownload { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpPost("server/files/upload")]
|
[HttpPost("server/files/upload")]
|
||||||
public async Task<IActionResult> CreateFiles(List<IFormFile> files)
|
public async Task<IActionResult> CreateFiles(List<IFormFile> files)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ namespace BTCPayServer.Services.Altcoins.Monero.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("{cryptoCode}")]
|
[HttpPost("{cryptoCode}")]
|
||||||
|
[DisableRequestSizeLimit]
|
||||||
public async Task<IActionResult> GetStoreMoneroLikePaymentMethod(MoneroLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
|
public async Task<IActionResult> GetStoreMoneroLikePaymentMethod(MoneroLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
|
||||||
{
|
{
|
||||||
cryptoCode = cryptoCode.ToUpperInvariant();
|
cryptoCode = cryptoCode.ToUpperInvariant();
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ namespace BTCPayServer.Services.Altcoins.Zcash.UI
|
|||||||
return View(nameof(GetStoreZcashLikePaymentMethod), vm);
|
return View(nameof(GetStoreZcashLikePaymentMethod), vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DisableRequestSizeLimit]
|
||||||
[HttpPost("{cryptoCode}")]
|
[HttpPost("{cryptoCode}")]
|
||||||
public async Task<IActionResult> GetStoreZcashLikePaymentMethod(ZcashLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
|
public async Task<IActionResult> GetStoreZcashLikePaymentMethod(ZcashLikePaymentMethodViewModel viewModel, string command, string cryptoCode)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user